다음을 통해 공유


ComUtilities.QueryInterfaceIUnknown Method

Retrieves the IUnknown for the specified managed or COM object.

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

Syntax

‘선언
Public Shared Function QueryInterfaceIUnknown ( _
    objectToQuery As Object _
) As IntPtr
public static IntPtr QueryInterfaceIUnknown(
    Object objectToQuery
)

Parameters

Return Value

Type: System.IntPtr
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.

.NET Framework Security

See Also

Reference

ComUtilities Class

Microsoft.VisualStudio.Shell Namespace