Share via


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> 입니다.

예제

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

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

적용 대상