语言

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

定义场或属性的阶权重。

适用于