Class ArgumentDescriptorAttribute
- Namespace
- OneImlx.Terminal.Commands.Declarative
- Assembly
- OneImlx.Terminal.dll
Declares an OptionDescriptor for a command.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class ArgumentDescriptorAttribute : Attribute
- Inheritance
-
ArgumentDescriptorAttribute
- Inherited Members
Constructors
ArgumentDescriptorAttribute(int, string, string, string, ArgumentFlags)
Initializes a new instance.
public ArgumentDescriptorAttribute(int order, string id, string dataType, string description, ArgumentFlags flags)
Parameters
order
intThe argument order.
id
stringThe argument id.
dataType
stringThe argument data type.
description
stringThe argument description.
flags
ArgumentFlagsThe argument flags.
Properties
DataType
The argument data type.
public string DataType { get; }
Property Value
Description
The argument description.
public string Description { get; }
Property Value
Remarks
The argument id is unique across all commands.
Flags
The argument flags.
public ArgumentFlags Flags { get; }
Property Value
Id
The argument id.
public string Id { get; }
Property Value
Remarks
The argument id is unique within a command.
Order
The argument order.
public int Order { get; }