Class OptionAttribute
Declares a standard Option argument which can either be On or Off
Inheritance
System.Object
OptionAttribute
Syntax
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class OptionAttribute : BaseOptionAttribute
Constructors
| Improve this DocOptionAttribute(Char)
Apply to a Bool Property to mark it as an Option definition
Declaration
public OptionAttribute(char ShortName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Char | ShortName | The case sensitive character which can be declared after a - to invoke an option |
OptionAttribute(String)
Apply to a Bool Property to mark it as an Option definition
Declaration
public OptionAttribute(string LongName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | LongName | The case insensitive string which can be declared after a -- to invoke an option |
OptionAttribute(String, Char)
Apply to a Bool Property to mark it as an Option definition
Declaration
public OptionAttribute(string LongName, char ShortName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | LongName | The case insensitive string which can be declared after a -- to invoke an option |
| System.Char | ShortName | The case sensitive character which can be declared after a - to invoke an option |