Click or drag to resize

ValueDescriptionAttribute Class

Provides a custom value description for use in the usage help for an argument created from a constructor parameter.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    Ookii.CommandLineValueDescriptionAttribute

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.4.0
Syntax
public sealed class ValueDescriptionAttribute : Attribute

The ValueDescriptionAttribute type exposes the following members.

Constructors
  NameDescription
Public methodValueDescriptionAttribute
Initializes a new instance of the ValueDescriptionAttribute class.
Top
Properties
  NameDescription
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Public propertyValueDescription
Gets the custom value description.
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

The value description is a short (typically one word) description that indicates the type of value that the user should supply. By default the type of the parameter is used. If the type is an array type, the array's element type is used. If the type is a nullable type, the nullable type's underlying type is used.

The value description is used when printing usage. For example, the usage for an argument named Sample with a value description of String would look like "-Sample <String>".

Note Note
This is not the long description used to describe the purpose of the argument. That should be specified using the DescriptionAttribute attribute.
See Also