IContextManager.GetContext 메서드

정의

컨텍스트를 가져옵니다.

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)

반품

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

예제

다음 코드는 클라이언트의 형식화된 프록시 인스턴스에서 컨텍스트를 가져오는 방법을 보여 줍니다.

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

적용 대상