IContextManager.GetContext Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Percebe o contexto.
public:
System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ GetContext();
public System.Collections.Generic.IDictionary<string,string> GetContext();
abstract member GetContext : unit -> System.Collections.Generic.IDictionary<string, string>
Public Function GetContext () As IDictionary(Of String, String)
Devoluções
Os IDictionary<TKey,TValue> emparelhamentos de chave/valor com o namespace e o nome do contexto.
Exemplos
O código seguinte mostra como o contexto pode ser obtido a partir de uma instância proxy tipada no cliente.
IDictionary<string, string> context;
CalculatorProxy proxy;
IContextManager cm = proxy.InnerChannel.GetProperty<IContextManager>();
if (cm != null)
context = cm.GetContext();