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