HttpCookiePairHeaderValue Class

Definition

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

public ref class HttpCookiePairHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpCookiePairHeaderValueFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpCookiePairHeaderValue final : IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpCookiePairHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpCookiePairHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpCookiePairHeaderValueFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpCookiePairHeaderValue : IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpCookiePairHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpCookiePairHeaderValue : IStringable
function HttpCookiePairHeaderValue(name, value)
Public NotInheritable Class HttpCookiePairHeaderValue
Implements IStringable
Inheritance
Object Platform::Object IInspectable HttpCookiePairHeaderValue
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

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, String)

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

HttpCookiePairHeaderValue(String)

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

Properties

Name

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

Value

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

Methods

Parse(String)

Converts a string to an HttpCookiePairHeaderValue instance.

ToString()

Returns a string that represents the current HttpCookiePairHeaderValue object.

TryParse(String, HttpCookiePairHeaderValue)

Determines whether a string is valid HttpCookiePairHeaderValue information.

Applies to

See also