Search Results for

    Show / Hide Table of Contents

    Class VersionOptionAttribute

    The option used to determine if version text should be displayed.

    Inheritance
    System.Object
    System.Attribute
    OptionAttributeBase
    VersionOptionAttribute
    Inherited Members
    OptionAttributeBase.ShortName
    OptionAttributeBase.LongName
    OptionAttributeBase.SymbolName
    OptionAttributeBase.ValueName
    OptionAttributeBase.Description
    OptionAttributeBase.ShowInHelpText
    OptionAttributeBase.Inherited
    Namespace: McMaster.Extensions.CommandLineUtils
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property)]
    public sealed class VersionOptionAttribute : OptionAttributeBase

    Constructors

    | Improve this Doc View Source

    VersionOptionAttribute(String)

    Initializes a new VersionOptionAttribute with the template --version.

    Declaration
    public VersionOptionAttribute(string version)
    Parameters
    Type Name Description
    System.String version

    The version

    | Improve this Doc View Source

    VersionOptionAttribute(String, String)

    Initializes a new VersionOptionAttribute.

    Declaration
    public VersionOptionAttribute(string template, string version)
    Parameters
    Type Name Description
    System.String template

    The string template that will be parsed into ShortName and LongName.

    System.String version

    The version

    Properties

    | Improve this Doc View Source

    Template

    The option template. This is parsed into the short and long name.

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

    Version

    The version information to be shown. ShortVersionGetter.

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