CommandInfoCreate Method

Creates an instance of the CommandInfo class for the specified command type.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public static CommandInfo Create(
	Type commandType,
	CommandManager manager
)

Parameters

commandType  Type
The type that implements the subcommand.
manager  CommandManager
The CommandManager that is managing this command.

Return Value

CommandInfo
A CommandInfo class with information about the command.

Exceptions

ArgumentNullExceptioncommandType or manager is .
ArgumentExceptioncommandType is does not implement the ICommand interface, does not have the CommandAttribute attribute, or is .

See Also