NotificationPriority 类
- 程序集
- ClassIsland.Shared.dll
代表提醒队列的优先级顺序。
public class NotificationPriority : IComparable
- 继承
-
NotificationPriority
- 实现
- 继承成员
构造函数
NotificationPriority(int, int, bool)
代表提醒队列的优先级顺序。
public NotificationPriority(int priority, int index, bool isPriorityOverride)
参数
属性
Index
提醒插入队列的顺序。
public int Index { get; }
属性值
IsPriorityOverride
提醒是否插队。
public bool IsPriorityOverride { get; }
属性值
Priority
提醒提供方优先级。
public int Priority { get; }
属性值
方法
CompareTo(object?)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public int CompareTo(object? obj)
参数
obj
objectAn object to compare with this instance.
返回
- int
A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning Less than zero This instance precedes obj
in the sort order.Zero This instance occurs in the same position in the sort order as obj
.Greater than zero This instance follows obj
in the sort order.
异常
- ArgumentException
obj
is not the same type as this instance.