ComUtilities::QueryInterfaceIUnknown Method (Object^)

 

Retrieves the IUnknown for the specified managed or COM object.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
static IntPtr QueryInterfaceIUnknown(
	Object^ objectToQuery
)

Parameters

objectToQuery
Type: System::Object^

Managed or COM object.

Return Value

Type: System::IntPtr

Pointer to the IUnknown interface of the object.

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

Return to top
Show: