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
stringThe command id.
name
stringThe command name.
description
stringThe command description.
commandType
CommandTypeThe command type.
commandFlags
CommandFlagsThe command flags.
Properties
CommandFlags
The command flags.
public CommandFlags CommandFlags { get; }
Property Value
CommandType
The command type.
public CommandType CommandType { get; }
Property Value
Description
The command description.
public string Description { get; }
Property Value
Id
The command id.
public string Id { get; }
Property Value
Remarks
The command id is unique across all commands.
Name
The command name.
public string Name { get; }
Property Value
Remarks
The command name is unique within a grouped command.