ContextMessageProperty.TryCreateFromHttpCookieHeader 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
嘗試從指定 HTTP cookie 的鍵值對中實例化 a 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。
例外狀況
httpCookieHeader 是 null。