Implements a command factory for creating command.
Creates a new instance of a commnad with the specified name.
public ICommand Create(name)
An instance of an ICommand for the specified name.
Name | Type | Summary |
---|---|---|
name | String | The name of the command to create. |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when name is null or empty. |
InvalidOperationException | Thrown when the command name is not valid. |
Creates an array of supported commands.
public ICommand[] CreateCommands()
An array of commands.
Type | Summary |
---|---|
InvalidOperationException | Thrown when the command list is empty. |
Sets the list of command names.
public Void SetCommandList(commandList)
Name | Type | Summary |
---|---|---|
commandList | String[] | A list of command names. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when commandList is null. |
ArgumentException | Thrown when commandList is an empty array. |
In this document