CorFieldAttr Enumeration

 

Contains values that describe metadata about a field.

typedef enum CorFieldAttr {  
  
    fdFieldAccessMask           =   0x0007,  
    fdPrivateScope              =   0x0000,  
    fdPrivate                   =   0x0001,  
    fdFamANDAssem               =   0x0002,  
    fdAssembly                  =   0x0003,  
    fdFamily                    =   0x0004,  
    fdFamORAssem                =   0x0005,  
    fdPublic                    =   0x0006,  
  
    fdStatic                    =   0x0010,  
    fdInitOnly                  =   0x0020,  
    fdLiteral                   =   0x0040,  
    fdNotSerialized             =   0x0080,  
  
    fdSpecialName               =   0x0200,  
  
    fdPinvokeImpl               =   0x2000,  
  
    fdReservedMask              =   0x9500,  
    fdRTSpecialName             =   0x0400,  
    fdHasFieldMarshal           =   0x1000,  
    fdHasDefault                =   0x8000,  
    fdHasFieldRVA               =   0x0100  
  
} CorFieldAttr;  

MemberDescription
fdFieldAccessMaskSpecifies accessibility information.
fdPrivateScopeSpecifies that the field cannot be referenced.
fdPrivateSpecifies that the field is accessible only by its parent type.
fdFamANDAssemSpecifies that the field is accessible by derived classes in its assembly.
fdAssemblySpecifies that the field is accessible by all types in its assembly.
fdFamilySpecifies that the field is accessible only by its type and derived classes.
fdFamORAssemSpecifies that the field is accessible by derived classes and by all types in its assembly.
fdPublicSpecifies that the field is accessible by all types with visibility of this scope.
fdStaticSpecifies that the field is a member of its type rather than an instance member.
fdInitOnlySpecifies that the field cannot be changed after it is initialized.
fdLiteralSpecifies that the field value is a compile-time constant.
fdNotSerializedSpecifies that the field is not serialized when its type is remoted.
fdSpecialNameSpecifies that the field is special, and that its name describes how.
fdPinvokeImplSpecifies that the field implementation is forwarded through PInvoke.
fdReservedMaskReserved for internal use by the common language runtime.
fdRTSpecialNameSpecifies that the common language runtime metadata internal APIs should check the encoding of the name.
fdHasFieldMarshalSpecifies that the field contains marshaling information.
fdHasDefaultSpecifies that the field has a default value.
fdHasFieldRVASpecifies that the field has a relative virtual address.

Platforms: See System Requirements.

Header: CorHdr.h

.NET Framework Versions: Available since 1.0

Metadata Enumerations

Show: