Click or drag to resize
FieldInfoGetValue Method
When overridden in a derived class, returns the value of a field supported by a given object.

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public abstract Object GetValue(
	Object obj
)

Parameters

obj
Type: SystemObject
The object whose field value will be returned.

Return Value

Type: Object
An object containing the value of the field reflected by this instance.
Exceptions
ExceptionCondition
TargetExceptionThe field is non-static and obj is null.
NotSupportedExceptionA field is marked literal, but the field does not have one of the accepted literal types.
FieldAccessExceptionThe caller does not have permission to access this field.
ArgumentExceptionThe method is neither declared nor inherited by the class of obj.
See Also