CookieInit Class

https://cookiestore.spec.whatwg.org/#dictdef-cookieinit

public sealed class CookieInit

Constructors

NameDescription
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

NameDescription
DomainGets the domain of the cookie, or null for a host-only cookie.
ExpiresGets the expiry time, in milliseconds since the Unix epoch, or null.
MaxAgeGets the maximum age, in seconds, or null.
NameGets the name of the cookie.
PartitionedGets a value indicating whether the cookie is a partitioned cookie.
PathGets the path of the cookie.
SameSiteGets the SameSite policy of the cookie.
ValueGets the value of the cookie.

Gets the domain of the cookie, or null for a host-only cookie.

public string? Domain { get; init; }

Gets the expiry time, in milliseconds since the Unix epoch, or null.

public double? Expires { get; init; }

Gets the maximum age, in seconds, or null.

public long? MaxAge { get; init; }

Gets the name of the cookie.

public required string Name { get; init; }

Partitioned

CookieStore.cs

Gets a value indicating whether the cookie is a partitioned cookie.

public bool Partitioned { get; init; }

Gets the path of the cookie.

public string Path { get; init; }

Gets the SameSite policy of the cookie.

public CookieSameSite SameSite { get; init; }

Gets the value of the cookie.

public required string Value { get; init; }