Bewerken

Delen via


FieldAttribute Class

Definition

This attribute is present on properties to indicate that they reflect an underlying unmanaged global variable.

[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field)]
public sealed class FieldAttribute : Attribute
type FieldAttribute = class
    inherit Attribute
Inheritance
FieldAttribute
Attributes

Remarks

When this attribute is present on a property, it indicates that the property actually reflects an underlying unmanaged global variable.

Constructors

FieldAttribute(String, String)

Creates a new FieldAttribute instance with the specific symbol to bind.

FieldAttribute(String)

Creates a new FieldAttribute instance with the specific symbol to bind.

Properties

LibraryName

The library name where the global symbol is looked up from.

SymbolName

The global symbol that this field represents.

Applies to