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

声明
Function QueryViewInterface ( _
    ByRef riid As Guid, _
    <OutAttribute> ByRef ppv As IntPtr _
) As Integer
用法
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
)
abstract QueryViewInterface : 
        riid:Guid byref * 
        ppv:IntPtr byref -> int 
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.

.NET Framework Security

See Also

Reference

IVsWindowFrame Interface

IVsWindowFrame Members

Microsoft.VisualStudio.Shell.Interop Namespace