Mono Class Library: System.Reflection Namespace

System.Reflection.FieldAttributes Enumeration

Specifies flags that describe the attributes of a field.
[System.Flags]
[System.Runtime.InteropServices.ComVisible(true)]
public enum FieldAttributes

Remarks

This enumeration is used by the FieldInfo.Attributes property.

Members

Member NameDescription
Assembly Specifies that the field is accessible throughout the assembly.
FamANDAssem Specifies that the field is accessible only to the members of the type that defines the field and its subclasses in the assembly.
Family Specifies that the field is accessible only to the type that defines the field and its subclasses.
FamORAssem Specifies that the field is accessible only to the members of the type that defines the field and its subclasses as well as throughout the assembly.
FieldAccessMask Specifies a bit-mask that, when combined with the FieldInfo.Attributes of a field using the logical AND operator, yields the bits that specify the accessibility of a field.
HasDefaultDocumentation for this section has not yet been entered.
HasFieldMarshalDocumentation for this section has not yet been entered.
HasFieldRVADocumentation for this section has not yet been entered.
InitOnly Specifies that the field is initialized only, and cannot be written after initialization.
Literal Specifies that the field's value is a compile-time (static or early bound) constant.
NotSerializedDocumentation for this section has not yet been entered.
PinvokeImplSpecifies that the implementation of a field is forwarded through Platform Invocation Services (PInvoke).
Private Specifies that the field is accessible only to members in the type in which it is defined.
PrivateScope Specifies that the field cannot be referenced.
Public Specifies that the field is accessible to any member.
ReservedMaskDocumentation for this section has not yet been entered.
RTSpecialNameDocumentation for this section has not yet been entered.
SpecialName

Specifies that the field is treated in a special way by some tools.

Note:

For more information on special names, see Partition I of the CLI Specification.

For more information on SpecialName in metadata, see Partition II of the CLI Specification.

Static Specifies that the field associated with the defining type and is shared by all instances of the type in which it is defined.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0