Udostępnij za pośrednictwem


ComUtilities.QueryInterfaceIUnknown(Object) Method

Definition

Retrieve the IUnknown for the managed or COM object passed in.

public:
 static IntPtr QueryInterfaceIUnknown(System::Object ^ objectToQuery);
public static IntPtr QueryInterfaceIUnknown (object objectToQuery);
static member QueryInterfaceIUnknown : obj -> nativeint
Public Shared Function QueryInterfaceIUnknown (objectToQuery As Object) As IntPtr

Parameters

objectToQuery
Object

Managed or COM object.

Returns

IntPtr

nativeint

Pointer to the IUnknown interface of the object.

Remarks

Release should be called on the returned value when the interface pointer is no longer needed.

Applies to