IVsWebBrowsingService.GetFirstWebBrowser 方法

获取第一个可用的浏览器。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function GetFirstWebBrowser ( _
    ByRef rguidPersistenceSlot As Guid, _
    <OutAttribute> ByRef ppFrame As IVsWindowFrame, _
    <OutAttribute> ByRef ppBrowser As IVsWebBrowser _
) As Integer
int GetFirstWebBrowser(
    ref Guid rguidPersistenceSlot,
    out IVsWindowFrame ppFrame,
    out IVsWebBrowser ppBrowser
)

参数

  • rguidPersistenceSlot
    类型:System.Guid%
    [in] 为浏览器窗口 GUID 的指针。必须注册窗口以保存和还原 Visual Studio 启动时。使用 GUID_NULL 使用默认值。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsbrowse.idl:

HRESULT IVsWebBrowsingService::GetFirstWebBrowser(
   [in] REFGUID rguidPersistenceSlot, 
   [out] IVsWindowFrame** ppFrame, 
   [out] IVsWebBrowser** ppBrowser
);

.NET Framework 安全性

请参见

参考

IVsWebBrowsingService 接口

Microsoft.VisualStudio.Shell.Interop 命名空间