CookieInit Class
https://cookiestore.spec.whatwg.org/#dictdef-cookieinit
public sealed class CookieInitConstructors
| Name | Description |
|---|---|
| CookieInit() |
CookieInit()
CookieStore.cs- Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public CookieInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Domain | Gets the domain of the cookie, or null for a host-only cookie. |
| Expires | Gets the expiry time, in milliseconds since the Unix epoch, or null. |
| MaxAge | Gets the maximum age, in seconds, or null. |
| Name | Gets the name of the cookie. |
| Partitioned | Gets a value indicating whether the cookie is a partitioned cookie. |
| Path | Gets the path of the cookie. |
| SameSite | Gets the SameSite policy of the cookie. |
| Value | Gets the value of the cookie. |
Domain
CookieStore.csGets the domain of the cookie, or null for a host-only cookie.
public string? Domain { get; init; }Expires
CookieStore.csGets the expiry time, in milliseconds since the Unix epoch, or null.
public double? Expires { get; init; }MaxAge
CookieStore.csGets the maximum age, in seconds, or null.
public long? MaxAge { get; init; }Name
CookieStore.csGets the name of the cookie.
public required string Name { get; init; }Partitioned
CookieStore.csGets a value indicating whether the cookie is a partitioned cookie.
public bool Partitioned { get; init; }Path
CookieStore.csGets the path of the cookie.
public string Path { get; init; }SameSite
CookieStore.csGets the SameSite policy of the cookie.
public CookieSameSite SameSite { get; init; }Value
CookieStore.csGets the value of the cookie.
public required string Value { get; init; }