OrderAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义字段或属性的订单权重。
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Serializable]
public class OrderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Serializable>]
type OrderAttribute = class
inherit Attribute
Public Class OrderAttribute
Inherits Attribute
- 继承
-
OrderAttribute
- 属性
注解
默认情况下,订单权重为 0。
构造函数
OrderAttribute(Int32) |
设置字段或属性的顺序权重 |
属性
Order |
定义字段或属性的订单权重。 |