GeneratedCommandInfo Class

Represents information about a subcommand determined by the source generator.

Definition

Namespace: Ookii.CommandLine.Support
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public class GeneratedCommandInfo : CommandInfo
Inheritance
Object    CommandInfo    GeneratedCommandInfo
Derived

Remarks

This class is used by the source generator when using the GeneratedCommandManagerAttribute attribute. It should not normally be used by other code.

Constructors

GeneratedCommandInfo Initializes a new instance of the GeneratedCommandInfo class.

Properties

Aliases Gets the alternative names of this command.
(Overrides CommandInfoAliases)
CommandType Gets the type that implements the command.
(Inherited from CommandInfo)
Description Gets the description of the command.
(Overrides CommandInfoDescription)
IsHidden Gets or sets a value that indicates whether the command is hidden from the usage help.
(Inherited from CommandInfo)
Manager Gets the CommandManager that this instance belongs to.
(Inherited from CommandInfo)
Name Gets the name of the command.
(Inherited from CommandInfo)
ParentCommandType Gets the type of the command that is the parent of this command.
(Inherited from CommandInfo)
UseCustomArgumentParsing Gets a value that indicates if the command uses custom parsing.
(Overrides CommandInfoUseCustomArgumentParsing)

Methods

CreateInstance Creates an instance of the command type parsing the specified arguments.
(Inherited from CommandInfo)
CreateInstanceWithCustomParsing Creates an instance of a command that uses the ICommandWithCustomParsing interface.
(Overrides CommandInfoCreateInstanceWithCustomParsing)
CreateInstanceWithResult Creates an instance of the command type by parsing the specified arguments, and returns it in addition to the result of the parsing operation.
(Inherited from CommandInfo)
CreateParser Creates a CommandLineParser instance for the type indicated by the CommandType property.
(Overrides CommandInfoCreateParser)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MatchesName Checks whether the command's name or aliases match the specified name.
(Inherited from CommandInfo)
MatchesPrefix Checks whether the command's name or one of its aliases start with the specified prefix.
(Inherited from CommandInfo)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also