ICommandParams interface
Namespace: NextDesign.Desktop
Description
Provides parameters for the command.
Affiliation area
Name | Description |
---|---|
Commands | A group of APIs to access commands received by command handlers. |
Affiliation event area
Name | Description |
---|---|
Commands | Notifies the execution of a command. |
Property
Name | Description |
---|---|
Item[int] | Gets the value at the specified index. |
Item[string] | Gets the value associated with the specified key. |
Method
Name | Description |
---|---|
AddParam | Adds a value object to a parameter. |
AddParamWithName | Adds a named value to a parameter. |
GetByIndex | Gets the value of the specified parameter by index. |
GetByName | Gets the value of the specified parameter by parameter name. |
ToArray | Converts the contents of the parameter to an object array. |
ToCollection | Converts the contents of the parameter to an object collection. |
Annotations
The value of each element of the command parameter can also be obtained by index specification or parameter name specification as follows.
//get parameter value by index
object param0 = commandParams[0];
//get the value of the parameter by specifying the parameter name
object param1 = commandParams["param1"];