CommandArgumentAttribute Class

An attribute representing a command argument.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class CommandArgumentAttribute : Attribute
Base Types
  • Attribute

Attributes

AttributeUsageAttribute

Constructors

CommandArgumentAttribute(int, string)
Initializes a new instance of the CommandArgumentAttribute class.

Properties

bool IsRequired
Gets a value indicating whether the argument is required.
int Position
Gets the argument position.
string ValueName
Gets the value name of the argument.

See Also

  • System.Attribute