Table of Contents

Class CommandDescriptorAttribute

Namespace
OneImlx.Terminal.Commands.Declarative
Assembly
OneImlx.Terminal.dll

Declares a CommandDescriptor for a command.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class CommandDescriptorAttribute : Attribute
Inheritance
CommandDescriptorAttribute
Inherited Members

Constructors

CommandDescriptorAttribute(string, string, string, CommandType, CommandFlags)

Initializes a new instance.

public CommandDescriptorAttribute(string id, string name, string description, CommandType commandType, CommandFlags commandFlags)

Parameters

id string

The command id.

name string

The command name.

description string

The command description.

commandType CommandType

The command type.

commandFlags CommandFlags

The command flags.

Properties

CommandFlags

The command flags.

public CommandFlags CommandFlags { get; }

Property Value

CommandFlags

CommandType

The command type.

public CommandType CommandType { get; }

Property Value

CommandType

Description

The command description.

public string Description { get; }

Property Value

string

Id

The command id.

public string Id { get; }

Property Value

string

Remarks

The command id is unique across all commands.

Name

The command name.

public string Name { get; }

Property Value

string

Remarks

The command name is unique within a grouped command.