Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the IUnknown for the specified managed or COM object.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Shared Function QueryInterfaceIUnknown ( _
objectToQuery As Object _
) As IntPtr
public static IntPtr QueryInterfaceIUnknown(
Object objectToQuery
)
public:
static IntPtr QueryInterfaceIUnknown(
Object^ objectToQuery
)
static member QueryInterfaceIUnknown :
objectToQuery:Object -> IntPtr
public static function QueryInterfaceIUnknown(
objectToQuery : Object
) : IntPtr
Parameters
objectToQuery
Type: ObjectManaged or COM object.
Return Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.