IVsWebBrowsingService::CreateWebBrowser Method (UInt32, Guid, String^, String^, IVsWebBrowserUser^, IVsWebBrowser^, IVsWindowFrame^)

 

Create an instance of a Web browser within the Visual Studio user interface.

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

int CreateWebBrowser(
	unsigned int dwCreateFlags,
	[InAttribute] Guid% rguidOwner,
	String^ lpszBaseCaption,
	String^ lpszStartURL,
	IVsWebBrowserUser^ pUser,
	[OutAttribute] IVsWebBrowser^% ppBrowser,
	[OutAttribute] IVsWindowFrame^% ppFrame
)

Parameters

dwCreateFlags
Type: System::UInt32

[in] Bit flags specifying browser options. Created using values from the __VSCREATEWEBBROWSER enumeration.

rguidOwner
Type: System::Guid

[in] The GUID of the owner of the window frame in which the browser appears.

lpszBaseCaption
Type: System::String^

[in] Pointer to a string containing the base (first part) of the caption for the browser window. Default is WebBrowser.

lpszStartURL
Type: System::String^

[in] Pointer to a string containing the URL of the page to display.

pUser
Type: Microsoft.VisualStudio.Shell.Interop::IVsWebBrowserUser^

[in] Pointer to the IVsWebBrowserUser interface to use in controlling the browser.

ppBrowser
Type: Microsoft.VisualStudio.Shell.Interop::IVsWebBrowser^

[out] Pointer to the IVsWebBrowser interface of the browser.

ppFrame
Type: Microsoft.VisualStudio.Shell.Interop::IVsWindowFrame^

[out] Pointer to the window frame (IVsWindowFrame) containing the browser.

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::CreateWebBrowser(
   [in] VSCREATEWEBBROWSER dwCreateFlags, 
   [in] REFGUID rguidOwner, 
   [in] LPCOLESTR lpszBaseCaption, 
   [in] LPCOLESTR lpszStartURL, 
   [in] IVsWebBrowserUser* pUser, 
   [out] IVsWebBrowser** ppBrowser, 
   [out] IVsWindowFrame** ppFrame
);
Return to top
Show: