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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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