ContextMessageProperty.TryCreateFromHttpCookieHeader Método

Definição

Tenta instanciar a ContextMessageProperty a partir dos pares chave/valor de um cookie HTTP especificado.

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

Parâmetros

httpCookieHeader
String

O nome do cabeçalho HTTP cookie a partir do qual os context valores das propriedades devem ser inicializados.

context
ContextMessageProperty

Quando este método retorna true, context contém um ContextMessageProperty que contém o ContextMessageProperty que está associado ao httpCookieHeader. Este parâmetro é passado sem inicializar.

Devoluções

true quando um valor para o ContextMessageProperty é obtido a partir do httpCookieHeader; caso contrário, false.

Exceções

httpCookieHeader é null.

Aplica-se a