Compartilhar via


CoreWebView2Cookie Class

Provides a set of properties that are used to manage a CoreWebView2Cookie.

Summary

Members Description
Domain Gets the domain for which the cookie is valid.
Expires The expiration date and time for the cookie since the UNIX epoch.
IsHttpOnly Determines whether this cookie is http-only.
IsSecure Gets or sets the security level of this cookie.
IsSession Determines whether this is a session cookie. The default value is false.
Name Get or sets the cookie name.
Path Gets the path for which the cookie is valid.
SameSite Determines the SameSite status of the cookie which represents the enforcement mode of the cookie.
Value Gets or sets the cookie value.

Properties

Domain

readonly string Domain

Gets the domain for which the cookie is valid. The default value is the host that this cookie has been received from. Note that, for instance, .bing.com, bing.com, and www.bing.com are considered different domains.

Expires

double Expires

The expiration date and time for the cookie since the UNIX epoch.

IsHttpOnly

bool IsHttpOnly

Determines whether this cookie is http-only.

IsSecure

bool IsSecure

Gets or sets the security level of this cookie.

IsSession

readonly bool IsSession

Determines whether this is a session cookie. The default value is false.

Name

readonly string Name

Get or sets the cookie name.

Path

readonly string Path

Gets the path for which the cookie is valid. The default value is "/", which means this cookie will be sent to all pages on the CoreWebView2Cookie.Domain.

SameSite

CoreWebView2CookieSameSiteKind SameSite

Determines the SameSite status of the cookie which represents the enforcement mode of the cookie. The default value is CoreWebView2CookieSameSiteKind.Lax.

Value

string Value

Gets or sets the cookie value.

Referenced by