HttpCookiePairHeaderValue HttpCookiePairHeaderValue HttpCookiePairHeaderValue HttpCookiePairHeaderValue HttpCookiePairHeaderValue Class

Definition

Represents cookie information used in the Cookie HTTP header on an HTTP request.

public : sealed class HttpCookiePairHeaderValue : IStringable, IHttpCookiePairHeaderValue
struct winrt::Windows::Web::Http::Headers::HttpCookiePairHeaderValue : IStringable, IHttpCookiePairHeaderValue
public sealed class HttpCookiePairHeaderValue : IStringable, IHttpCookiePairHeaderValue
Public NotInheritable Class HttpCookiePairHeaderValue Implements IStringable, IHttpCookiePairHeaderValue
var httpCookiePairHeaderValue = new httpCookiePairHeaderValue(name);
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The HttpCookiePairHeaderValue class represents cookie information used in the Cookie HTTP header on an HTTP request.

The Cookie property on the HttpRequestHeaderCollection returns an HttpCookiePairHeaderValueCollection that contains HttpCookiePairHeaderValue objects.

Constructors

HttpCookiePairHeaderValue(String) HttpCookiePairHeaderValue(String) HttpCookiePairHeaderValue(String) HttpCookiePairHeaderValue(String) HttpCookiePairHeaderValue(String)

Initializes a new instance of the HttpCookiePairHeaderValue class. with a cookie name.

HttpCookiePairHeaderValue(String, String) HttpCookiePairHeaderValue(String, String) HttpCookiePairHeaderValue(String, String) HttpCookiePairHeaderValue(String, String) HttpCookiePairHeaderValue(String, String)

Initializes a new instance of the HttpCookiePairHeaderValue class. with a cookie name and a value for the cookie.

Properties

Name Name Name Name Name

Gets a token that represents the cookie name used in the Cookie HTTP header.

Value Value Value Value Value

Gets or sets a value for the cookie used in the Cookie HTTP header.

Methods

Parse(String) Parse(String) Parse(String) Parse(String) Parse(String)

Converts a string to an HttpCookiePairHeaderValue instance.

ToString() ToString() ToString() ToString() ToString()

Returns a string that represents the current HttpCookiePairHeaderValue object.

TryParse(String, HttpCookiePairHeaderValue) TryParse(String, HttpCookiePairHeaderValue) TryParse(String, HttpCookiePairHeaderValue) TryParse(String, HttpCookiePairHeaderValue) TryParse(String, HttpCookiePairHeaderValue)

Determines whether a string is valid HttpCookiePairHeaderValue information.

See Also