Share via


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

Copies a managed object to an unmanaged pointer.

Definition

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

Parameters

objectData System.Object
Source ObjectLeave Site to copy to the unmanaged pointer.
pointerData System.IntPtr
Destination pointer to which the source object is copied.

Remarks

This method copies strings and arrays of strings, but it is not a fast process.

Exceptions

ArgumentExceptionLeave Site

A value type must be passed to this method.