Class EventPriorityAttribute code
- 程序集
- Another-Mirai-Native.Abstractions.dll
指定与特定事件类型关联的插件事件处理器的优先级。
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class EventPriorityAttribute : Attribute
- 继承
-
EventPriorityAttribute
- 继承成员
构造函数
EventPriorityAttribute(PluginEventType, int) code
指定与特定事件类型关联的插件事件处理器的优先级。
public EventPriorityAttribute(PluginEventType eventType, int priority = 1)
参数
eventTypePluginEventType优先级所适用的插件事件类型。
priorityint事件处理器的优先级值。数值越高表示优先级越高。默认值为 1。
属性
EventType code
需要设置优先级的插件事件类型。
public PluginEventType EventType { get; set; }
属性值
Priority code
事件优先级,数值越高表示优先级越高。默认值为 1。
public int Priority { get; set; }