Skip to main content

ICommandParams interface

Namespace: NextDesign.Desktop

Description​

Provides parameters for the command.

Affiliation area​

NameDescription
CommandsA group of APIs to access commands received by command handlers.

Affiliation event area​

NameDescription
CommandsNotifies the execution of a command.

Property​

NameDescription
Item[int]Gets the value at the specified index.
Item[string]Gets the value associated with the specified key.

Method​

NameDescription
AddParamAdds a value object to a parameter.
AddParamWithNameAdds a named value to a parameter.
GetByIndexGets the value of the specified parameter by index.
GetByNameGets the value of the specified parameter by parameter name.
ToArrayConverts the contents of the parameter to an object array.
ToCollectionConverts 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"];