Class CookieData
- Namespace
- PuppeteerSharp
- Assembly
- PuppeteerSharp.dll
Cookie parameter object used to set cookies in the browser-level cookies API.
public class CookieData
- Inheritance
-
CookieData
Properties
Domain
Gets or sets the domain.
public string Domain { get; set; }
Property Value
Expires
Gets or sets the expiration. Unix time in seconds.
public double? Expires { get; set; }
Property Value
HttpOnly
Gets or sets if it's HTTP only.
public bool? HttpOnly { get; set; }
Property Value
- bool?
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
PartitionKey
Cookie partition key. In Chrome, it matches the top-level site the partitioned cookie is available in. In Firefox, it matches the source origin.
[JsonConverter(typeof(CookiePartitionKeyConverter))]
public CookiePartitionKey PartitionKey { get; set; }
Property Value
Path
Gets or sets the path.
public string Path { get; set; }
Property Value
Priority
Cookie Priority. Supported only in Chrome.
public CookiePriority? Priority { get; set; }
Property Value
SameParty
Always set to false. Supported only in Chrome.
[Obsolete("SameParty is deprecated and always ignored.")]
public bool? SameParty { get; set; }
Property Value
- bool?
SameSite
Gets or sets the cookies SameSite value.
public SameSite? SameSite { get; set; }
Property Value
Secure
Gets or sets if it's secure.
public bool? Secure { get; set; }
Property Value
- bool?
SourceScheme
Cookie source scheme type. Supported only in Chrome.
public CookieSourceScheme? SourceScheme { get; set; }
Property Value
Value
Gets or sets the value.
public string Value { get; set; }