Table of Contents

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 int

The argument order.

id string

The argument id.

dataType string

The argument data type.

description string

The argument description.

flags ArgumentFlags

The argument flags.

Properties

DataType

The argument data type.

public string DataType { get; }

Property Value

string

Description

The argument description.

public string Description { get; }

Property Value

string

Remarks

The argument id is unique across all commands.

Flags

The argument flags.

public ArgumentFlags Flags { get; }

Property Value

ArgumentFlags

Id

The argument id.

public string Id { get; }

Property Value

string

Remarks

The argument id is unique within a command.

Order

The argument order.

public int Order { get; }

Property Value

int