CommandInfo Constructor

Initializes a new instance of the CommandInfo class.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
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