Compartilhar via


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

'Declaration
Function QueryViewInterface ( _
    ByRef riid As Guid, _
    <OutAttribute> ByRef ppv As IntPtr _
) As Integer
int QueryViewInterface(
    ref Guid riid,
    out IntPtr ppv
)
int QueryViewInterface(
    [InAttribute] Guid% riid, 
    [OutAttribute] IntPtr% ppv
)
abstract QueryViewInterface : 
        riid:Guid byref * 
        ppv:IntPtr byref -> int
function QueryViewInterface(
    riid : Guid, 
    ppv : IntPtr
) : int

Parameters

  • riid
    Type: Guid%

    [in] Identifier of the window frame being requested.

  • ppv
    Type: IntPtr%

    [out, iid_is(riid)] Address of pointer variable that receives the window frame pointer requested in riid.

Return Value

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

.NET Framework Security

See Also

Reference

IVsWindowFrame Interface

Microsoft.VisualStudio.Shell.Interop Namespace