IContextManager.SetContext(IDictionary<String,String>) 메서드

정의

컨텍스트를 설정합니다.

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

매개 변수

context
IDictionary<String,String>

IDictionary<TKey,TValue> 설정된 컨텍스트의 네임스페이스 및 이름을 사용하는 키/값 쌍입니다.

예제

다음 코드는 클라이언트에서 컨텍스트를 설정할 수 있는 방법을 보여줍니다.

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

적용 대상