Table of Contents

Property CanSetCookieHandler

Namespace
DotNetBrowser.Net
Assembly
DotNetBrowser.dll

CanSetCookieHandler

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

IHandler<CanSetCookieParameters, CanSetCookieResponse> CanSetCookieHandler { get; set; }

Property Value

IHandler<CanSetCookieParameters, CanSetCookieResponse>

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.

Exceptions

ObjectDisposedException

The INetwork object has already been disposed.