ContextMessageProperty.TryCreateFromHttpCookieHeader Méthode

Définition

Tente d’instancier une ContextMessageProperty paire 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 de cookie HTTP à partir duquel les context valeurs de propriété doivent être initialisées.

context
ContextMessageProperty

Lorsque cette méthode retourne true, context contient un ContextMessageProperty qui contient l’élément ContextMessageProperty associé au httpCookieHeader. Ce paramètre est passé non initialisé.

Retours

true lorsqu’une valeur de l’objet ContextMessageProperty est obtenue à partir du httpCookieHeader; sinon, false.

Exceptions

httpCookieHeader a la valeur null.

S’applique à