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
- 特性
注解
当此属性存在于某个属性上时,它指示该属性实际上反映了基础非托管全局变量。
构造函数
| 名称 | 说明 |
|---|---|
| FieldAttribute(String, String) |
使用要绑定的特定符号创建新的 FieldAttribute 实例。 |
| FieldAttribute(String) |
使用要绑定的特定符号创建新的 FieldAttribute 实例。 |
属性
| 名称 | 说明 |
|---|---|
| LibraryName |
从中查找全局符号的库名称。 |
| SymbolAddress |
获取或设置生成的访问器是否返回非托管符号的地址。 |
| SymbolName |
此字段表示的全局符号。 |