CommandInfoTryCreate Method
Creates an instance of the
CommandInfo class only if
commandType
represents a command type.
Namespace: Ookii.CommandLine.CommandsAssembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
public static CommandInfo? TryCreate(
Type commandType,
CommandManager manager
)
Public Shared Function TryCreate (
commandType As Type,
manager As CommandManager
) As CommandInfo
Dim commandType As Type
Dim manager As CommandManager
Dim returnValue As CommandInfo
returnValue = CommandInfo.TryCreate(commandType,
manager)
public:
static CommandInfo^ TryCreate(
Type^ commandType,
CommandManager^ manager
)
- commandType Type
- The type that implements the subcommand.
- manager CommandManager
-
The CommandManager that is managing this command.
CommandInfo
If the type specified by
commandType implements the
ICommand
interface, has the
CommandAttribute attribute, and is not
,
a
CommandInfo class with information about the command; otherwise,
.