DXHelp.CopyObjectDataToPointer Method

Language:

Copies a managed object to an unmanaged pointer.

Definition

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

Parameters

objectData System.Object
Source Object Leave 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
ArgumentException Leave Site A value type must be passed to this method.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center