A property used to communicate context between the application and channel layers on either the client or the service.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Thetype exposes the following members.
|ContextMessageProperty()||Initializes a new instance of the class.|
|ContextMessageProperty(IDictionary<String, String>)||Initializes a new instance of the class with a specified context.|
|AddOrReplaceInMessage||Sets the value of the ContextMessageProperty property in a specified Message from the current instance of .|
|AddOrReplaceInMessageProperties||Sets the value of the ContextMessageProperty property in a specified collection of MessageProperties from the current instance of .|
|CreateCopy||Creates a copy of the current instance of .|
|Equals(Object)||Determines whether the specified object is equal to the current object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as the default hash function. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
|TryCreateFromHttpCookieHeader||Attempts to instantiate a from the key/value pairs of a specified HTTP cookie.|
|TryGet(Message, ContextMessageProperty)||Attempts to get the ContextMessageProperty from the properties of a specified message.|
|TryGet(MessageProperties, ContextMessageProperty)||Attempts to get the ContextMessageProperty from a specified collection of message properties.|
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 is used to attach context to an outgoing message on the client or the service at the application layer.
The 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.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.