IContextManager.GetContext Method

Gets the context.

Namespace:  System.ServiceModel.Channels
Assembly:  System.WorkflowServices (in System.WorkflowServices.dll)

IDictionary<string, string> GetContext()

Return Value

Type: System.Collections.Generic.IDictionary<String, String>
The IDictionary<TKey, TValue> of key/value pairs with the namespace and name of the context.

The following code shows how the context can be obtained from a typed proxy instance on the client.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft