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.GetObjectForIUnknown

Returns an instance of System.Object that represents an unmanaged COM object that is specified by a pointer to its IUnknown interface.

[Visual Basic]
Public Shared Function GetObjectForIUnknown( _
   ByVal pUnk As Integer _
) As Object
[C#]
public static object GetObjectForIUnknown(
   int pUnk
);
[C++]
public: static Object* GetObjectForIUnknown(
   int pUnk
);
[JScript]
public static function GetObjectForIUnknown(
   pUnk : int
) : Object;

Parameters

pUnk
Integer representing a pointer to the IUnknown interface of the managed object to be returned.

Return Value

An instance of System.Object representing the specified unmanaged COM object.

See Also

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