ChromiumWebBrowser Constructor (String, IBrowserSettings, IRequestContext, Boolean, ActionIBrowser) |
Version 98.1.210
Namespace:
CefSharp.OffScreen
Assembly:
CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 98.1.210.0 (98.1.210.0)
Syntax public ChromiumWebBrowser(
string address = "",
IBrowserSettings browserSettings = null,
IRequestContext requestContext = null,
bool automaticallyCreateBrowser = true,
Action<IBrowser> onAfterBrowserCreated = null
)
public:
ChromiumWebBrowser(
String^ address = L"",
IBrowserSettings^ browserSettings = nullptr,
IRequestContext^ requestContext = nullptr,
bool automaticallyCreateBrowser = true,
Action<IBrowser^>^ onAfterBrowserCreated = nullptr
)
Parameters
- address (Optional)
- Type: SystemString
Initial address (url) to load - 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 - onAfterBrowserCreated (Optional)
- Type: SystemActionIBrowser
Use as an alternative to the BrowserInitialized event. If the underlying Chromium Embedded Framework (CEF) browser is created successfully,
this action is guranteed to be called after the browser created where as the BrowserInitialized event may be called before
you have a chance to subscribe to the event as the CEF Browser is created async. (Issue https://github.com/cefsharp/CefSharp/issues/3552).
Exceptions See Also