CommandInfo Constructor

Initializes a new instance of the CommandInfo class.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
protected CommandInfo(
	Type commandType,
	CommandAttribute attribute,
	CommandManager manager,
	Type? parentCommandType
)

Parameters

commandType  Type
The type that implements the subcommand.
attribute  CommandAttribute
The CommandAttribute for the subcommand type.
manager  CommandManager
The CommandManager that is managing this command.
parentCommandType  Type
The Type of a command that is the parent of this command.

Exceptions

ArgumentNullExceptioncommandType or manager is .

See Also