This documentation is archived and is not being maintained.

DispatchRuntime.MessageInspectors Property

Gets a collection of IDispatchMessageInspector objects that can be used to attach a custom message inspector for all incoming and outgoing messages across the endpoint.

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

public SynchronizedCollection<IDispatchMessageInspector> MessageInspectors { get; }
/** @property */
public SynchronizedCollection<IDispatchMessageInspector> get_MessageInspectors ()

public function get MessageInspectors () : SynchronizedCollection<IDispatchMessageInspector>

Not applicable.

Property Value

A SynchronizedCollection object of type IDispatchMessageInspector.

Use the MessageInspectors property to attach custom IDispatchMessageInspector objects that can inspect or transform all messages that flow through the endpoint. Because the IDispatchMessageInspector object gets a reference to the message, you can buffer it and examine a copy of the body.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0