CommandInfoIsCommand Method

Returns a value indicating if the specified type is a subcommand.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public static bool IsCommand(
	Type commandType
)

Parameters

commandType  Type
The type that implements the subcommand.

Return Value

Boolean
if the type implements the ICommand interface, has the CommandAttribute attribute applied, and is not ; otherwise, .

Exceptions

ArgumentNullExceptioncommandType is .

See Also