Skip to content

CookiePartitionKey

Namespace: PuppeteerSharp

public class CookiePartitionKey : IEquatable<CookiePartitionKey>

Cookie partition key.

Inheritance: object

Implements: IEquatable<CookiePartitionKey>

View source

public bool? HasCrossSiteAncestor { get; set; }

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

Value: bool?

View source

public string SourceOrigin { get; set; }

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.

Value: string

View source

public bool Equals(CookiePartitionKey other)

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

Parameters

Name Type Description
other CookiePartitionKey An object to compare with this object.

Returns: bool — <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;true&lt;/a> if the current object is equal to the <code class=“paramref”>other</code> parameter; otherwise, <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

View source

public override bool Equals(object obj)

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

Parameters

Name Type Description
obj object The object to compare with the current object.

Returns: bool — <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;true&lt;/a> if the specified object is equal to the current object; otherwise, <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool"&gt;false&lt;/a>.

View source

public override int GetHashCode()

Serves as the default hash function.

Returns: int — A hash code for the current object.

View source

Made with love by Dario Kondratiuk