Table of Contents

Class EventAttribute

Namespace
SampSharp.Entities
Assembly
SampSharp.OpenMp.Entities.dll

Indicates a method is to be invoked when an event occurs.

[AttributeUsage(AttributeTargets.Method)]
public class EventAttribute : Attribute
Inheritance
EventAttribute
Inherited Members

Constructors

EventAttribute()

public EventAttribute()

Properties

Name

Gets or sets the name of the event which should invoke the method. If this value is null, the method name is used as the event name.

public string? Name { get; set; }

Property Value

string