ContextMessageProperty Class

A property used to communicate context between the application and channel layers on either the client or the service.

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

'Declaration
<SerializableAttribute> _
Public Class ContextMessageProperty _
	Implements IMessageProperty
'Usage
Dim instance As ContextMessageProperty

A collection of properties that are added to a Message that correlates messages that form part of a conversation between a client and a service.

If Enabled is true, context is established at the channel layer, and all incoming messages on the client and the service have this context property attached by the context channel. If Enabled is false the ContextMessageProperty is used to attach context to an outgoing message on the client or the service at the application layer.

The ContextMessageProperty can be used on the client or on the service. Alternatively, on the client only, the current context can be obtained or a new context can be set on channel instance using GetContext and SetContext properties.

System.Object
  System.ServiceModel.Channels.ContextMessageProperty

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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:
© 2014 Microsoft