IContextManager.GetContext Metodo

Definizione

Ottiene il contesto.

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)

Restituisce

Interfaccia IDictionary<TKey,TValue> di coppie chiave/valore con lo spazio dei nomi e il nome del contesto.

Esempio

Nel codice seguente viene mostrato come è possibile ottenere il contesto da un'istanza del proxy tipizzata sul client.

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

Si applica a