Share via


DXHelp.CopyPointerDataToObject(Object,IntPtr) Method (Microsoft.DirectX)

Copies an unmanaged pointer to a managed object.

Definition

Visual Basic Public Shared Sub CopyPointerDataToObject( _
    ByRef objectData As Object, _
    ByVal pointerData As IntPtrLeave Site _
)
C# public static void CopyPointerDataToObject(
    ref object objectData,
    IntPtrLeave Site pointerData
);
C++ public:
static void CopyPointerDataToObject(
    ObjectLeave Site^% objectData,
    IntPtrLeave Site pointerData
);
JScript public static function CopyPointerDataToObject(
    objectData : ObjectLeave Site,
    pointerData : IntPtrLeave Site
);

Parameters

objectData System.Object
[ref] Destination ObjectLeave Site to which the pointer data is copied.
pointerData System.IntPtr
Source pointer data that is copied to the object.

Remarks

Exceptions

ArgumentExceptionLeave Site

A value type must be passed to this method.