语言

FieldAttribute 类

定义

此属性存在于属性上,以指示它们反映基础非托管全局变量。

[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

此字段表示的全局符号。

适用于