Class CommandTagAttribute
Attaches custom metadata to a command via key-value pairs. This attribute can be applied multiple times to add multiple tags. Users can define custom tags for their own purposes.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class CommandTagAttribute : Attribute
- Inheritance
-
CommandTagAttribute
- Derived
- Inherited Members
Constructors
CommandTagAttribute(string, string)
Initializes a new instance with the specified key and value.
public CommandTagAttribute(string key, string value)
Parameters
Properties
Key
The tag key.
public string Key { get; }
Property Value
Value
The tag value.
public string Value { get; }