Share via


IContextManager.GetContext Método

Definición

Obtiene el 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)

Devoluciones

IDictionary<TKey,TValue> de pares clave-valor con el espacio de nombres y el nombre del contexto.

Ejemplos

El siguiente código muestra cómo obtener el contexto de una instancia de proxy con tipo en el cliente.

IDictionary<string, string> context;  
CalculatorProxy proxy;  
IContextManager cm = proxy.InnerChannel.GetProperty<IContextManager>();  
if (cm != null)  
    context = cm.GetContext();  

Se aplica a