Click or drag to resize

INetworkCanSetCookieHandler Property

Gets or sets a handler that is used when Chromium engine decides whether cookie can be saved for the URL or not.

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.25.1
Syntax
C#
IHandler<CanSetCookieParameters, CanSetCookieResponse> CanSetCookieHandler { get; set; }

Property Value

Type: IHandlerCanSetCookieParameters, CanSetCookieResponse
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe INetwork object has already been disposed.
Remarks

Use the Allow method to allow engine to save the cookie.

Use the Deny method to deny engine to save the cookie. It will not be available via the ICookieStore object.

If exception occurs inside the handler, then default behavior will be applied - the Allow method will be used.

See Also