Rule.Priority 属性

定义

获取或设置一个指示应该运行 Rule 的顺序的值。Gets or sets a value that indicates the order in which a Rule should be run.

public:
 property int Priority { int get(); void set(int value); };
public int Priority { get; set; }
member this.Priority : int with get, set
Public Property Priority As Integer

属性值

Int32

指示应该运行 Rule 的顺序的值。A value that indicates the order in which a Rule should be run.

注解

具有较高优先级值的 Rule 类在具有较低优先级的 Rule 类之前运行。Rule classes that have a higher priority value are run before lower priority Rule classes. 具有相同优先级的规则按其名称属性的字母顺序运行。Rules that have the same priority are run in the alphabetic order of their name properties.

Priority 值可以是正数也可以是负数。The Priority value can be positive or negative. 任何 Rule 的默认值均为 0。The default value for any Rule is 0.

适用于