Table of Contents

Class CookiePartitionKey

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Cookie partition key.

public class CookiePartitionKey : IEquatable<CookiePartitionKey>
Inheritance
CookiePartitionKey
Implements

Properties

HasCrossSiteAncestor

Indicates if the cookie has any ancestors that are cross-site to the topLevelSite. Supported only in Chrome.

public bool? HasCrossSiteAncestor { get; set; }

Property Value

bool?

SourceOrigin

The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. In Chrome, maps to the CDP's topLevelSite partition key.

public string SourceOrigin { get; set; }

Property Value

string

Methods

Equals(CookiePartitionKey)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CookiePartitionKey other)

Parameters

other CookiePartitionKey

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.