NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Marshal.DestroyStructure

Frees all substructures pointed to by the native memory block.

[Visual Basic]
Public Shared Sub DestroyStructure( _
   ByVal ptr As Integer, _
   ByVal structuretype As Type _
)
[C#]
public static void DestroyStructure(
   int ptr,
   Type structuretype
);
[C++]
public: static void DestroyStructure(
   int ptr,
   Type* structuretype
);
[JScript]
public static function DestroyStructure(
   ptr : int,
   structuretype : Type
);

Parameters

ptr
A pointer to an unmanaged block of memory.
structuretype
A Type object that represents a formatted class. This provides the layout information necessary to delete the buffer(s).

See Also

Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace