Compartir a través de


FieldInfo.GetValue Method

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

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)

Syntax

[DebuggerStepThroughAttribute]
[DebuggerHiddenAttribute]
public virtual abstract Object GetValue (
         Object obj
)

Parameters

  • obj
    The object whose field value will be returned.

Return Value

An object that contains the value of the field reflected by the current FieldInfo object.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

FieldInfo Class
FieldInfo Members
System.Reflection Namespace