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

    CommandType

    The type of the subcommand.

    Declaration
    public Type CommandType { get; set; }
    Property Value
    Type Description
    System.Type
    | Improve this Doc View Source

    Name

    The name of the subcommand.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    • Improve this Doc
    • View Source
    In This Article
    Back to top