Search Results for

    Show / Hide Table of Contents

    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 Source

    SubcommandAttribute(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 Source

    Types

    The types of the subcommands.

    Declaration
    public Type[] Types { get; }
    Property Value
    Type Description
    System.Type[]
    • Improve this Doc
    • View Source
    In This Article
    Back to top