CookiePartitionKey
Namespace: PuppeteerSharp
public class CookiePartitionKey : IEquatable<CookiePartitionKey>Cookie partition key.
Inheritance: object
Implements: IEquatable<CookiePartitionKey>
Properties
Section titled “Properties”HasCrossSiteAncestor
Section titled “HasCrossSiteAncestor”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?
SourceOrigin
Section titled “SourceOrigin”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
Methods
Section titled “Methods”Equals(CookiePartitionKey)
Section titled “Equals(CookiePartitionKey)”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">true</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">false</a>.
Equals(object)
Section titled “Equals(object)”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">true</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">false</a>.
GetHashCode()
Section titled “GetHashCode()”public override int GetHashCode()Serves as the default hash function.
Returns: int — A hash code for the current object.
Made with love by Dario Kondratiuk