Table of Contents

Class AliasAttribute

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

Marks a command method as having one or more aliases (shorthand names). Aliases can be used instead of the full command path. For example, [Alias("pm")] on a "message send" command allows "/pm" instead of "/message send".

[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class AliasAttribute : Attribute
Inheritance
AliasAttribute
Inherited Members

Constructors

AliasAttribute(string)

Initializes a new instance with a single alias.

public AliasAttribute(string alias)

Parameters

alias string

AliasAttribute(params string[])

Initializes a new instance with multiple aliases.

public AliasAttribute(params string[] aliases)

Parameters

aliases string[]

Properties

Aliases

The alias names (without leading slashes).

public string[] Aliases { get; }

Property Value

string[]