HttpCookiePairHeaderValue Classe

Définition

Représente les informations de cookie utilisées dans l’en-tête HTTP cookie sur une requête HTTP.

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
Héritage
Object Platform::Object IInspectable HttpCookiePairHeaderValue
Attributs
Implémente

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Remarques

La classe HttpCookiePairHeaderValue représente les informations de cookie utilisées dans l’en-tête HTTP cookie sur une requête HTTP.

La propriété Cookie sur httpRequestHeaderCollection renvoie un HttpCookiePairHeaderValueCollection qui contient des objets HttpCookiePairHeaderValue.

Constructeurs

HttpCookiePairHeaderValue(String)

Initialise une nouvelle instance de la classe HttpCookiePairHeaderValue. avec un nom de cookie.

HttpCookiePairHeaderValue(String, String)

Initialise une nouvelle instance de la classe HttpCookiePairHeaderValue. avec un nom de cookie et une valeur pour le cookie.

Propriétés

Name

Obtient un jeton qui représente le nom de cookie utilisé dans l’en-tête HTTP cookie .

Value

Obtient ou définit une valeur pour le cookie utilisé dans l’en-tête HTTP cookie .

Méthodes

Parse(String)

Convertit une chaîne en un instance HttpCookiePairHeaderValue.

ToString()

Renvoie une chaîne qui représente l’objet HttpCookiePairHeaderValue actuel.

TryParse(String, HttpCookiePairHeaderValue)

Détermine si une chaîne est valide pour les informations HttpCookiePairHeaderValue .

S’applique à

Voir aussi