Microsoft DirectX 9.0 SDK Update (October 2004)

DXHelp.CopyObjectDataToPointer Method

Language:

Note: This documentation is preliminary and is subject to change.

Copies a managed object to an unmanaged pointer.

Definition

Visual Basic .NET Public Shared Sub CopyObjectDataToPointer( _
    ByVal objectData As Object, _
    ByVal pointerData As IntPtr _
)
C# public static void CopyObjectDataToPointer(
    object objectData,
    IntPtr pointerData
);
Managed C++ public: static void CopyObjectDataToPointer(
    Object *objectData,
    IntPtr pointerData
);
JScript .NET 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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