Share via


ContextMessageProperty.TryCreateFromHttpCookieHeader メソッド

定義

指定された HTTP クッキーのキーと値のペアから ContextMessageProperty のインスタンス化を試みます。

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

パラメーター

httpCookieHeader
String

context プロパティ値の初期化元となる HTTP クッキー ヘッダーの名前。

context
ContextMessageProperty

このメソッドが true を返すと、context には、ContextMessageProperty に関連付けられている ContextMessageProperty を含んでいる httpCookieHeader が格納されます。 このパラメーターは初期化せずに渡されます。

戻り値

true の値が ContextMessageProperty から取得された場合は、httpCookieHeader、そうでない場合は false です。

例外

httpCookieHeadernull です。

適用対象