Table of Contents

Class CommandGroupAttribute

Namespace
SampSharp.Entities.SAMP.Commands
Assembly
SampSharp.OpenMp.Entities.Commands.dll

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

part string

CommandGroupAttribute(params string[])

Initializes a new instance with multiple group parts.

public CommandGroupAttribute(params string[] parts)

Parameters

parts string[]

Properties

Parts

The group parts (e.g., ["admin", "money"]).

public string[] Parts { get; }

Property Value

string[]