EventAttributeclass

A generic event listener. You are probably looking for Sandbox.Event.* attributes.

objectAttributeEventAttribute
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public class Sandbox.EventAttribute : System.Attribute

Constructors1

Showing 1 constructors

public EventAttribute(string eventName)PUBLICCONSTRUCTOR

ParameterTypeDescription
eventNamestring

Properties2

Showing 2 properties

public string Sandbox.EventAttribute.EventName { get; set; }PUBLICGETSET

The internal event identifier.

Returns:string

public int Sandbox.EventAttribute.Priority { get; set; }PUBLICGETSET

Events with lower numbers are run first. This defaults to 0, so setting it to -1 will mean your event will run before all other events that don't define it. Setting it to 1 would mean it'll run after all events that don't.

Returns:int

On this page