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
要从中初始化属性值的 context HTTP Cookie 标头的名称。
- context
- ContextMessageProperty
此方法返回
返回
例外
httpCookieHeader 是 null。