ComUtilities.QueryInterfaceIUnknown(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.