<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.0" />

CookieState

public class CookieState : ICloneable
Contains cookie name and its associated cookie state.
public string this[string subName] { get; set; }

Gets or sets the cookie value with the specified cookie name, if the cookie data is structured.

public string Name { get; set; }

Gets or sets the name of the cookie.

public string Value { get; set; }

Gets or sets the cookie value, if cookie data is a simple string value.

public NameValueCollection Values { get; }

Gets or sets the collection of name-value pair, if the cookie data is structured.

public CookieState(string name)

Initializes a new instance of the CookieState class.

public CookieState(string name, string value)

Initializes a new instance of the CookieState class.

public CookieState(string name, NameValueCollection values)

Initializes a new instance of the CookieState class.

public object Clone()

Returns a new object that is a copy of the current instance.