Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

_FieldInfo::GetValueDirect Method (TypedReference)

 

Provides COM objects with version-independent access to the GetValueDirect method.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

Object^ GetValueDirect(
	TypedReference obj
)

Parameters

obj
Type: System::TypedReference

A TypedReference structure that encapsulates a managed pointer to a location and a runtime representation of the type that might be stored at that location.

Return Value

Type: System::Object^

An Object containing a field value.

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The GetValueDirect method returns the value of a field supported by a given object.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft