Class CommandGroupAttribute
Marks a class or method as part of one or more command groups. Can be applied multiple times to stack groups. For example, [CommandGroup("admin"), CommandGroup("money")] stacks to "admin money".
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true)]
public class CommandGroupAttribute : Attribute
- Inheritance
-
CommandGroupAttribute
- Inherited Members
Constructors
CommandGroupAttribute(string)
Initializes a new instance with a single group part.
public CommandGroupAttribute(string part)
Parameters
partstring
CommandGroupAttribute(params string[])
Initializes a new instance with multiple group parts.
public CommandGroupAttribute(params string[] parts)
Parameters
partsstring[]
Properties
Parts
The group parts (e.g., ["admin", "money"]).
public string[] Parts { get; }
Property Value
- string[]