IContextManager.SetContext(IDictionary<String,String>) Método

Definição

Define o contexto.

public:
 void SetContext(System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ context);
public void SetContext(System.Collections.Generic.IDictionary<string,string> context);
abstract member SetContext : System.Collections.Generic.IDictionary<string, string> -> unit
Public Sub SetContext (context As IDictionary(Of String, String))

Parâmetros

context
IDictionary<String,String>

O IDictionary<TKey,TValue> de pares chave/valor com o namespace e o nome do contexto que está definido.

Exemplos

O código seguinte mostra como o contexto pode ser definido no cliente.

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

Aplica-se a