ContextMessageProperty.TryCreateFromHttpCookieHeader Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente d'instancier un ContextMessageProperty à partir des paires clé/valeur d'un cookie HTTP spécifié.
public:
static bool TryCreateFromHttpCookieHeader(System::String ^ httpCookieHeader, [Runtime::InteropServices::Out] System::ServiceModel::Channels::ContextMessageProperty ^ % context);
public static bool TryCreateFromHttpCookieHeader(string httpCookieHeader, out System.ServiceModel.Channels.ContextMessageProperty context);
static member TryCreateFromHttpCookieHeader : string * ContextMessageProperty -> bool
Public Shared Function TryCreateFromHttpCookieHeader (httpCookieHeader As String, ByRef context As ContextMessageProperty) As Boolean
Paramètres
- httpCookieHeader
- String
Nom de l'en-tête du cookie HTTP à partir duquel les valeurs de propriété de context doivent être initialisées.
- context
- ContextMessageProperty
Lorsque cette méthode renvoie true, context contient un ContextMessageProperty qui lui-même contient le ContextMessageProperty associé à httpCookieHeader. Ce paramètre est passé sans être initialisé.
Retours
true lorsqu'une valeur de ContextMessageProperty est obtenue de httpCookieHeader ; sinon, false.
Exceptions
httpCookieHeader a la valeur null.