IVsWebBrowsingService.GetFirstWebBrowser Method
Get the first available Web browser.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
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
)
int GetFirstWebBrowser(
[InAttribute] Guid% rguidPersistenceSlot,
[OutAttribute] IVsWindowFrame^% ppFrame,
[OutAttribute] IVsWebBrowser^% ppBrowser
)
abstract GetFirstWebBrowser :
rguidPersistenceSlot:Guid byref *
ppFrame:IVsWindowFrame byref *
ppBrowser:IVsWebBrowser byref -> int
function GetFirstWebBrowser(
rguidPersistenceSlot : Guid,
ppFrame : IVsWindowFrame,
ppBrowser : IVsWebBrowser
) : int
Parameters
rguidPersistenceSlot
Type: System.Guid%[in] Pointer to the browser window GUID. A window must be registered in order to be saved and restored when Visual Studio starts up. Use GUID_NULL to use the default.
ppFrame
Type: Microsoft.VisualStudio.Shell.Interop.IVsWindowFrame%[out] Pointer to the window frame (IVsWindowFrame) containing the browser.
ppBrowser
Type: Microsoft.VisualStudio.Shell.Interop.IVsWebBrowser%[out] Pointer to the IVsWebBrowser interface of the browser. May be nulla null reference (Nothing in Visual Basic).
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 vsbrowse.idl:
HRESULT IVsWebBrowsingService::GetFirstWebBrowser(
[in] REFGUID rguidPersistenceSlot,
[out] IVsWindowFrame** ppFrame,
[out] IVsWebBrowser** ppBrowser
);
.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.