語言

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。

建構函式

名稱 Description
OrderAttribute(Int32)

設定欄位或屬性的順序權重

屬性

名稱 Description
Order

定義欄位或屬性的階權重。

適用於