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

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

Ejemplos

En el código siguiente se muestra cómo se puede 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