Click or drag to resize
OptionAttribute Class
Models an option specification.
Inheritance Hierarchy

Namespace: X3Platform.CommandLine
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public sealed class OptionAttribute : BaseOptionAttribute

The OptionAttribute type exposes the following members.

Constructors
  NameDescription
Public methodOptionAttribute
Initializes a new instance of the OptionAttribute class. The default long name will be inferred from target property.
Public methodOptionAttribute(Char)
Initializes a new instance of the OptionAttribute class.
Public methodOptionAttribute(String)
Initializes a new instance of the OptionAttribute class.
Public methodOptionAttribute(Char, String)
Initializes a new instance of the OptionAttribute class.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Top
Properties
  NameDescription
Public propertyDefaultValue
Gets or sets mapped property default value.
(Inherited from BaseOptionAttribute.)
Public propertyHelpText
Gets or sets a short description of this command line option. Usually a sentence summary.
(Inherited from BaseOptionAttribute.)
Public propertyLongName
Gets long name of this command line option. This name is usually a single english word.
(Inherited from BaseOptionAttribute.)
Public propertyMetaValue
Gets or sets mapped property meta value.
(Inherited from BaseOptionAttribute.)
Public propertyMutuallyExclusiveSet
Gets or sets the option's mutually exclusive set.
(Inherited from BaseOptionAttribute.)
Public propertyRequired
Gets or sets a value indicating whether a command line option is required.
(Inherited from BaseOptionAttribute.)
Public propertyShortName
Gets a short name of this command line option. You can use only one character.
(Inherited from BaseOptionAttribute.)
Public propertyTypeId (Inherited from Attribute.)
Top
See Also