TargetClientCreateBrowserContextAsync Method |
Version 130.1.90
Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than
one.
Namespace: CefSharp.DevTools.TargetAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<CreateBrowserContextResponse> CreateBrowserContextAsync(
bool? disposeOnDetach = null,
string proxyServer = null,
string proxyBypassList = null,
string[] originsWithUniversalNetworkAccess = null
)
public:
Task<CreateBrowserContextResponse^>^ CreateBrowserContextAsync(
Nullable<bool> disposeOnDetach = nullptr,
String^ proxyServer = nullptr,
String^ proxyBypassList = nullptr,
array<String^>^ originsWithUniversalNetworkAccess = nullptr
)
Parameters
- disposeOnDetach NullableBoolean (Optional)
- If specified, disposes this context when debugging session disconnects.
- proxyServer String (Optional)
- Proxy server, similar to the one passed to --proxy-server
- proxyBypassList String (Optional)
- Proxy bypass list, similar to the one passed to --proxy-bypass-list
- originsWithUniversalNetworkAccess String (Optional)
- An optional list of origins to grant unlimited cross-origin access to.Parts of the URL other than those constituting origin are ignored.
Return Value
TaskCreateBrowserContextResponsereturns System.Threading.Tasks.Task<CreateBrowserContextResponse>
See Also