Returns a managed object of a specified type that represents an unmanaged COM object. NOTE: Type T should be either a COM-imported Type or a sub-type of a COM-imported Type.
[Visual Basic] Public Shared Function GetTypedObjectForIUnknown( _ ByVal pUnk As Integer, _ ByVal T As Type _ ) As Object [C#] public static object GetTypedObjectForIUnknown( int pUnk, Type T ); [C++] public: static Object* GetTypedObjectForIUnknown( int pUnk, Type* T ); [JScript] public static function GetTypedObjectForIUnknown( pUnk : int, T : Type ) : Object;
An instance of the class corresponding to the Type object that represents the requested unmanaged COM object.
The type represented by T must be a type whose metadata was imported by TLBIMP.
Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace