Click or drag to resize

ChromiumWebBrowser Constructor (HtmlString, IBrowserSettings, IRequestContext, Boolean)

Version 88.2.90
Create a new OffScreen Chromium Browser. If you use LegacyBindingEnabled = true then you must set automaticallyCreateBrowser to false and call CreateBrowser(IWindowInfo, IBrowserSettings) after the objects are registered.

Namespace:  CefSharp.OffScreen
Assembly:  CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 88.2.90.0 (88.2.90.0)
Syntax
public ChromiumWebBrowser(
	HtmlString html,
	IBrowserSettings browserSettings = null,
	IRequestContext requestContext = null,
	bool automaticallyCreateBrowser = true
)

Parameters

html
Type: CefSharp.WebHtmlString
html string to be initially loaded in the browser.
browserSettings (Optional)
Type: CefSharpIBrowserSettings
The browser settings to use. If null, the default settings are used.
requestContext (Optional)
Type: CefSharpIRequestContext
See RequestContext for more details. Defaults to null
automaticallyCreateBrowser (Optional)
Type: SystemBoolean
automatically create the underlying Browser
Exceptions
ExceptionCondition
InvalidOperationExceptionCef::Initialize() failed
See Also