ContextMessageProperty.TryCreateFromHttpCookieHeader Methode

Definition

Versucht, eine ContextMessageProperty aus den Schlüssel-/Wertpaaren eines angegebenen HTTP-Cookies zu instanziieren.

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

Parameter

httpCookieHeader
String

Der Name des HTTP-Cookieheaders, aus dem die context-Eigenschaftswerte initialisiert werden sollen.

context
ContextMessageProperty

Wenn diese Methode true zurückgibt, enthält context eine ContextMessageProperty, die die ContextMessageProperty enthält, die dem httpCookieHeader zugeordnet ist. Dieser Parameter wird nicht initialisiert übergeben.

Gibt zurück

true, wenn ein Wert für die ContextMessageProperty aus dem httpCookieHeader abgerufen wird; andernfalls false.

Ausnahmen

httpCookieHeader ist null.

Gilt für: