Class SubcommandAttribute
Represents a subcommand.
Inheritance
System.Object
System.Attribute
SubcommandAttribute
Namespace: McMaster.Extensions.CommandLineUtils
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class SubcommandAttribute : Attribute
Constructors
| Improve this Doc View SourceSubcommandAttribute(String, Type)
Initializes a new instance of SubcommandAttribute.
Declaration
public SubcommandAttribute(string name, Type commandType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the subcommand |
System.Type | commandType | The type of the subcommand. |
Properties
| Improve this Doc View SourceCommandType
The type of the subcommand.
Declaration
public Type CommandType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Name
The name of the subcommand.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |