Class CommandAttribute
Marks this method as a command.
Inheritance
System.Object
System.Attribute
CommandAttribute
Namespace: DisCatSharp.CommandsNext.Attributes
Assembly: DisCatSharp.CommandsNext.dll
Syntax
[AttributeUsage(AttributeTargets.Method)]
public sealed class CommandAttribute : Attribute
Constructors
| Improve this Doc View SourceCommandAttribute()
Marks this method as a command, using the method's name as command name.
Declaration
public CommandAttribute()
CommandAttribute(String)
Marks this method as a command with specified name.
Declaration
public CommandAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of this command. |
Properties
| Improve this Doc View SourceName
Gets the name of this command.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |