OrderAttribute 类

定义

定义字段或属性的订单权重。

[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

定义字段或属性的订单权重。

适用于