Idioma

FieldAttribute Classe

Definição

Esse atributo está presente nas propriedades para indicar que elas refletem uma variável global não gerenciada subjacente.

[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
Herança
FieldAttribute
Atributos

Comentários

Quando esse atributo está presente em uma propriedade, ele indica que a propriedade realmente reflete uma variável global não gerenciada subjacente.

Construtores

Nome Description
FieldAttribute(String, String)

Cria uma nova instância FieldAttribute com o símbolo específico a ser associado.

FieldAttribute(String)

Cria uma nova instância FieldAttribute com o símbolo específico a ser associado.

Propriedades

Nome Description
LibraryName

O nome da biblioteca de onde o símbolo global é pesquisado.

SymbolAddress

Obtém ou define se o acessador gerado retorna o endereço do símbolo não gerenciado.

SymbolName

O símbolo global que esse campo representa.

Aplica-se a