IVsWebBrowsingService::GetFirstWebBrowser Method (Guid, IVsWindowFrame^, IVsWebBrowser^)

 

Get the first available Web browser.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetFirstWebBrowser(
	[InAttribute] Guid% rguidPersistenceSlot,
	[OutAttribute] IVsWindowFrame^% ppFrame,
	[OutAttribute] IVsWebBrowser^% ppBrowser
)

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 null.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsbrowse.idl:

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