TargetClientCreateBrowserContextAsync Method |
Version 89.0.170
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than
one.
Namespace:
CefSharp.DevTools.Target
Assembly:
CefSharp (in CefSharp.dll) Version: 89.0.170.0 (89.0.170.0)
Syntax public Task<CreateBrowserContextResponse> CreateBrowserContextAsync(
Nullable<bool> disposeOnDetach = null,
string proxyServer = null,
string proxyBypassList = null
)
public:
Task<CreateBrowserContextResponse^>^ CreateBrowserContextAsync(
Nullable<bool> disposeOnDetach = nullptr,
String^ proxyServer = nullptr,
String^ proxyBypassList = nullptr
)
Parameters
- disposeOnDetach (Optional)
- Type: SystemNullableBoolean
If specified, disposes this context when debugging session disconnects. - proxyServer (Optional)
- Type: SystemString
Proxy server, similar to the one passed to --proxy-server - proxyBypassList (Optional)
- Type: SystemString
Proxy bypass list, similar to the one passed to --proxy-bypass-list
Return Value
Type:
TaskCreateBrowserContextResponsereturns System.Threading.Tasks.Task<CreateBrowserContextResponse>
See Also