コード例 #1
0
        /// <summary>
        /// Constructs an instance of <c>PVCSCommandArgument</c> with the specified information.
        /// </summary>
        /// <param name="command">The command string.</param>
        /// <param name="commandValue">The value for the command, or <c>null</c> if no value applies.</param>
        /// <param name="position">The position for the command.</param>
        public PVCSCommandArgument(string command, object commandValue, PVCSCommandArgumentPosition position)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command", "The command cannot be null");
            }

            _command      = command;
            _commandValue = commandValue;
            _position     = position;
        }
コード例 #2
0
        /// <summary>
        /// Constructs an instance of <c>PVCSCommandArgument</c> with the specified information.
        /// </summary>
        /// <param name="command">The command string.</param>
        /// <param name="commandValue">The value for the command, or <c>null</c> if no value applies.</param>
        /// <param name="position">The position for the command.</param>
        public PVCSCommandArgument(string command, object commandValue, PVCSCommandArgumentPosition position) {
            if (command == null) {
                throw new ArgumentNullException("command", "The command cannot be null");
            }

            _command = command;
            _commandValue = commandValue;
            _position = position;
        }
コード例 #3
0
 /// <summary>
 /// Adds a new command argument to this collection with the specified information.
 /// </summary>
 /// <param name="command">The command string for the new command.</param>
 /// <param name="commandValue">
 /// The command value for the new command, or <c>null</c> if no value applies.
 /// </param>
 /// <param name="position">The position for the new command.</param>
 public void Add(string command, object commandValue, PVCSCommandArgumentPosition position)
 {
     List.Add(new PVCSCommandArgument(command, commandValue, position));
 }
コード例 #4
0
 /// <summary>
 /// Adds a new command argument to this collection with the specified information.
 /// </summary>
 /// <param name="command">The command string for the new command.</param>
 /// <param name="commandValue">
 /// The command value for the new command, or <c>null</c> if no value applies.
 /// </param>
 /// <param name="position">The position for the new command.</param>
 public void Add(string command, object commandValue, PVCSCommandArgumentPosition position) {
     List.Add(new PVCSCommandArgument(command, commandValue, position));
 }