ClientRuntime::MessageInspectors Property
Gets a collection of message inspector implementations for a client.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: property SynchronizedCollection<IClientMessageInspector^>^ MessageInspectors { SynchronizedCollection<IClientMessageInspector^>^ get(); }
Property Value
Type: System.Collections.Generic::SynchronizedCollection<IClientMessageInspector^>^A collection of IClientMessageInspector implementations.
Use the MessageInspectors property to attach custom IClientMessageInspector implementations to inspect or modify all messages that flow through the client.
In the following code example an System.ServiceModel.Description::IEndpointBehavior inserts a System.ServiceModel.Dispatcher::IClientMessageInspector into the client runtime by adding it to the MessageInspectors property.
The following code example shows a configuration file that loads the endpoint behavior into the client endpoint.
Available since 3.0
Silverlight
Available since 4.0