FieldAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此屬性存在於屬性上,表示其反映出一個底層未管理的全域變數。
[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class FieldAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type FieldAttribute = class
inherit Attribute
- 繼承
-
FieldAttribute
- 屬性
備註
當此屬性出現在屬性上時,表示該屬性實際上反映了一個底層的未管理全域變數。
建構函式
| 名稱 | Description |
|---|---|
| FieldAttribute(String, String) |
建立一個新的 FieldAttribute 實例,並綁定特定符號。 |
| FieldAttribute(String) |
建立一個新的 FieldAttribute 實例,並綁定特定符號。 |
屬性
| 名稱 | Description |
|---|---|
| LibraryName |
全域符號被查詢的資料庫名稱。 |
| SymbolAddress |
取得或設定所產生的存取器回傳未管理符號的位址。 |
| SymbolName |
這個欄位所代表的全域符號。 |