Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ClientRuntime::MessageInspectors Property

 

Gets a collection of message inspector implementations for a client.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property SynchronizedCollection<IClientMessageInspector^>^ MessageInspectors {
	SynchronizedCollection<IClientMessageInspector^>^ get();
}

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.

No code example is currently available or this language may not be supported.

The following code example shows a configuration file that loads the endpoint behavior into the client endpoint.

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Return to top
Show:
© 2017 Microsoft