IContextManager.GetContext Methode

Definitie

Haalt de context op.

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)

Retouren

De IDictionary<TKey,TValue> sleutel/waardeparen met de naamruimte en de naam van de context.

Voorbeelden

De volgende code laat zien hoe de context kan worden verkregen van een getypt proxy-exemplaar op de client.

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

Van toepassing op