In The Hand LtdIn The Hand
GetTypedObjectForIUnknown Method (pUnk, t)
NamespacesInTheHand.Runtime.InteropServicesMarshalHelperGetTypedObjectForIUnknown(IntPtr, Type)
.NET Components for Mobility
Returns an instance of a type that represents a COM object.
Declaration Syntax
C#Visual Basic
public static Object GetTypedObjectForIUnknown(
	IntPtr pUnk,
	Type t
)
Public Shared Function GetTypedObjectForIUnknown ( _
	pUnk As IntPtr, _
	t As Type _
) As Object
Parameters
pUnk (IntPtr)
A pointer to the IUnknown interface of the unmanaged object.
t (Type)
The Type of the requested managed class.
Return Value
An instance of the class corresponding to the Type object that represents the requested unmanaged COM object.
Exceptions
ExceptionCondition
ArgumentExceptiont is not attributed with ComImportAttribute.

Assembly: InTheHand (Module: InTheHand) Version: 7.0.0.0