Method GetValue
- Namespace
- Microsoft.Samples.Debugging.CorMetadata
- Assembly
- corapi.dll
GetValue(object)
When overridden in a derived class, returns the value of a field supported by a given object.
public override object GetValue(object obj)
Parameters
obj
objectThe object whose field value will be returned.
Returns
- object
An object containing the value of the field reflected by this instance.
Exceptions
- TargetException
In the .NET for Windows Store apps or the Portable Class Library, catch Exception instead. The field is non-static and
obj
is null.- NotSupportedException
A field is marked literal, but the field does not have one of the accepted literal types.
- FieldAccessException
In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, MemberAccessException, instead. The caller does not have permission to access this field.
- ArgumentException
The method is neither declared nor inherited by the class of
obj
.