System.Reflection.FieldAttributes Enum

public enum FieldAttributes

Base Types

Object
  ValueType
    Enum
      FieldAttributes

Assembly

mscorlib

Library

Reflection

Summary

Specifies flags that describe the attributes of a field.

Description

This enumeration is used by the System.Reflection.FieldInfo.Attributes property.

See Also

System.Reflection Namespace

Members

FieldAttributes Fields

FieldAttributes.Assembly Field
FieldAttributes.FamANDAssem Field
FieldAttributes.FamORAssem Field
FieldAttributes.Family Field
FieldAttributes.FieldAccessMask Field
FieldAttributes.InitOnly Field
FieldAttributes.Literal Field
FieldAttributes.PinvokeImpl Field
FieldAttributes.Private Field
FieldAttributes.PrivateScope Field
FieldAttributes.Public Field
FieldAttributes.SpecialName Field
FieldAttributes.Static Field
FieldAttributes.value__ Field


FieldAttributes.Assembly Field

Assembly = 3;

Summary

Specifies that the field is accessible throughout the assembly.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.FamANDAssem Field

FamANDAssem = 2;

Summary

Specifies that the field is accessible only to the members of the type that defines the field and its subclasses in the assembly.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.FamORAssem Field

FamORAssem = 5;

Summary

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.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.Family Field

Family = 4;

Summary

Specifies that the field is accessible only to the type that defines the field and its subclasses.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.FieldAccessMask Field

FieldAccessMask = 7;

Summary

Specifies a bit-mask that, when combined with the System.Reflection.FieldInfo.Attributes of a field using the logical AND operator, yields the bits that specify the accessibility of a field.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.InitOnly Field

InitOnly = 32;

Summary

Specifies that the field is initialized only, and cannot be written after initialization.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.Literal Field

Literal = 64;

Summary

Specifies that the field's value is a compile-time (static or early bound) constant.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.PinvokeImpl Field

PinvokeImpl = 8192;

Summary

Specifies that the implementation of a field is forwarded through Platform Invocation Services (PInvoke).

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.Private Field

Private = 1;

Summary

Specifies that the field is accessible only to members in the type in which it is defined.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.PrivateScope Field

PrivateScope = 0;

Summary

Specifies that the field cannot be referenced.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.Public Field

Public = 6;

Summary

Specifies that the field is accessible to any member.

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.SpecialName Field

SpecialName = 512;

Summary

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.

]

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.Static Field

Static = 16;

Summary

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

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace

FieldAttributes.value__ Field

value__;

See Also

System.Reflection.FieldAttributes Enum, System.Reflection Namespace