System.Reflection.FieldInfo Members

The members of System.Reflection.FieldInfo are listed below.

See Also: Inherited members from System.Reflection.MemberInfo

Protected Constructors

Initializes a new instance of the FieldInfo class.

Public Properties

[read-only]
abstract
AttributesFieldAttributes.

Gets the attributes associated with this field.

[read-only]
abstract
FieldHandleRuntimeFieldHandle.

Gets a RuntimeFieldHandle, which is a handle to the internal metadata representation of a field.

[read-only]
abstract
FieldTypeType.

Gets the type of this field object.

[read-only]
IsAssemblybool.

Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.Assembly; that is, the field is visible at most to other types in the same assembly, and is not visible to derived types outside the assembly.

[read-only]
IsFamilybool.

Gets a value indicating whether the visibility of this field is described by FieldAttributes.Family; that is, the field is visible only within its class and derived classes.

[read-only]
IsFamilyAndAssemblybool.

Gets a value indicating whether the visibility of this field is described by FieldAttributes.FamANDAssem; that is, the field can be accessed from derived classes, but only if they are in the same assembly.

[read-only]
IsFamilyOrAssemblybool.

Gets a value indicating whether the potential visibility of this field is described by FieldAttributes.FamORAssem; that is, the field can be accessed by derived classes wherever they are, and by classes in the same assembly.

[read-only]
IsInitOnlybool.

Gets a value indicating whether the field can only be set in the body of the constructor.

[read-only]
IsLiteralbool.

Gets a value indicating whether the value is written at compile time and cannot be changed.

[read-only]
IsNotSerializedbool.

Gets a value indicating whether this field has the NotSerialized attribute.

[read-only]
IsPinvokeImplbool.

Gets a value indicating whether the corresponding PinvokeImpl attribute is set in System.Reflection.FieldAttributes.

[read-only]
IsPrivatebool.

Gets a value indicating whether the field is private.

[read-only]
IsPublicbool.

Gets a value indicating whether the field is public.

[read-only]
IsSecurityCriticalbool.

Gets a value that indicates whether the current field is security-critical or security-safe-critical at the current trust level.

[read-only]
IsSecuritySafeCriticalbool.

Gets a value that indicates whether the current field is security-safe-critical at the current trust level.

[read-only]
IsSecurityTransparentbool.

Gets a value that indicates whether the current field is transparent at the current trust level.

[read-only]
IsSpecialNamebool.

Gets a value indicating whether the corresponding SpecialName attribute is set in the System.Reflection.FieldAttributes enumerator.

[read-only]
IsStaticbool.

Gets a value indicating whether the field is static.

[read-only]
override
MemberTypeMemberTypes.

Gets a System.Reflection.MemberTypes value indicating that this member is a field.

Public Methods

override
Equals(object) : bool

Returns a value that indicates whether this instance is equal to a specified object.

static
GetFieldFromHandle(RuntimeFieldHandle) : FieldInfo

Gets a System.Reflection.FieldInfo for the field represented by the specified handle.

static
GetFieldFromHandle(RuntimeFieldHandle, RuntimeTypeHandle) : FieldInfo

Gets a System.Reflection.FieldInfo for the field represented by the specified handle, for the specified generic type.

override
GetHashCode() : int

Returns the hash code for this instance.

GetOptionalCustomModifiers() : Type[]

Gets an array of types that identify the optional custom modifiers of the field.

GetRawConstantValue() : object

Returns a literal value associated with the field by a compiler.

GetRequiredCustomModifiers() : Type[]

Gets an array of types that identify the required custom modifiers of the property.

GetType() : Type
Documentation for this section has not yet been entered.
abstract
GetValue(object) : object

When overridden in a derived class, returns the value of a field supported by a given object.

GetValueDirect(TypedReference) : object

Returns the value of a field supported by a given object.

SetValue(object, object)

Sets the value of the field supported by the given object.

abstract
SetValue(object, object, BindingFlags, Binder, System.Globalization.CultureInfo)

When overridden in a derived class, sets the value of the field supported by the given object.

SetValueDirect(TypedReference, object)

Sets the value of the field supported by the given object.

Public Operators

static
Equality(FieldInfo, FieldInfo)

Indicates whether two System.Reflection.FieldInfo objects are equal.

static
Inequality(FieldInfo, FieldInfo)

Indicates whether two System.Reflection.FieldInfo objects are not equal.

Explicitly Implemented Interface Members

System.Runtime.InteropServices._FieldInfo.GetIDsOfNamesDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._FieldInfo.GetType

Gets a Type object representing the System.Reflection.FieldInfo type.

System.Runtime.InteropServices._FieldInfo.GetTypeInfo

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System.Runtime.InteropServices._FieldInfo.GetTypeInfoCountDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._FieldInfo.InvokeDocumentation for this section has not yet been entered.