CommandLineArgumentAttributeIsRequired Property

Gets or sets a value indicating whether the argument is required.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public bool IsRequired { get; set; }

Property Value

Boolean
if the argument must be supplied on the command line; otherwise, . The default value is .

Remarks

If the CommandLineArgumentAttribute attribute is used on a property with the C# required keyword, the argument will always be required, and the value of this property is ignored.

See Also