ContextMessageProperty.TryCreateFromHttpCookieHeader Method

Definition

Attempts to instantiate a ContextMessageProperty from the key/value pairs of a specified HTTP cookie.

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

Parameters

httpCookieHeader
String

The name of the HTTP cookie header from which the context property values are to be initialized.

context
ContextMessageProperty

When this method returns true, context contains a ContextMessageProperty that contains the ContextMessageProperty that is associated with the httpCookieHeader. This parameter is passed uninitialized.

Returns

true when a value for the ContextMessageProperty is obtained from the httpCookieHeader; otherwise, false.

Exceptions

httpCookieHeader is null.

Applies to