ContextMessageProperty.TryCreateFromHttpCookieHeader 方法

定義

嘗試從指定 HTTP Cookie 的索引鍵/值組,具現化 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

HTTP Cookie 標頭名稱,context 屬性值會從此處初始化。

context
ContextMessageProperty

當這個方法傳回 true 時,context 包含一個 ContextMessageProperty,而後者又包含與 ContextMessageProperty 關聯的 httpCookieHeader。 這個參數會以未初始化的狀態傳遞。

傳回

true 的值是從 ContextMessageProperty 取得,則為 httpCookieHeader;否則為 false

例外狀況

httpCookieHeadernull

適用於