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(Type[])
Initializes a new instance of SubcommandAttribute.
Declaration
public SubcommandAttribute(params Type[] subcommands)
Parameters
Type | Name | Description |
---|---|---|
System.Type[] | subcommands | The subcommand types. |
Properties
| Improve this Doc View SourceTypes
The types of the subcommands.
Declaration
public Type[] Types { get; }
Property Value
Type | Description |
---|---|
System.Type[] |