IVsWindowFrame.QueryViewInterface Method
Provides IVsWindowFrame with a view helper (VSFPROPID_ViewHelper) inserted into its list of event notifications.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Déclaration
Function QueryViewInterface ( _
ByRef riid As Guid, _
<OutAttribute> ByRef ppv As IntPtr _
) As Integer
'Utilisation
Dim instance As IVsWindowFrame
Dim riid As Guid
Dim ppv As IntPtr
Dim returnValue As Integer
returnValue = instance.QueryViewInterface(riid, _
ppv)
int QueryViewInterface(
ref Guid riid,
out IntPtr ppv
)
int QueryViewInterface(
[InAttribute] Guid% riid,
[OutAttribute] IntPtr% ppv
)
function QueryViewInterface(
riid : Guid,
ppv : IntPtr
) : int
Parameters
riid
Type: System.Guid%[in] Identifier of the window frame being requested.
ppv
Type: System.IntPtr%[out, iid_is(riid)] Address of pointer variable that receives the window frame pointer requested in riid.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsWindowFrame::QueryViewInterface(
[in] REFIID riid,
[out, iid_is(riid)] void ** ppv
);
Similar to the implementation of QueryInterface, except that you are calling on ViewHelper.
Permissions
- 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.