ContextMessageProperty.TryCreateFromHttpCookieHeader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru