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