Table of Contents

Class CommandTagAttribute

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

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

key string

The tag key (e.g., "permission", "category").

value string

The tag value.

Properties

Key

The tag key.

public string Key { get; }

Property Value

string

Value

The tag value.

public string Value { get; }

Property Value

string