Class VersionOptionFromMemberAttribute
The option used to determine if version info should be displayed. The value for the version information is provided by the properties or members specified.
Inherited Members
Namespace: McMaster.Extensions.CommandLineUtils
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public sealed class VersionOptionFromMemberAttribute : OptionAttributeBase
Constructors
| Improve this Doc View SourceVersionOptionFromMemberAttribute()
Initializes an instance of VersionOptionFromMemberAttribute with --version
as the template.
Declaration
public VersionOptionFromMemberAttribute()
VersionOptionFromMemberAttribute(String)
Initializes an instance of VersionOptionFromMemberAttribute with --version
as the template.
Declaration
public VersionOptionFromMemberAttribute(string template)
Parameters
Type | Name | Description |
---|---|---|
System.String | template | The version template. |
Properties
| Improve this Doc View SourceMemberName
The name of the property or method that returns short version information.
Declaration
public string MemberName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |