共用方式為


DispatchRuntime.MessageInspectors 屬性

定義

取得 IDispatchMessageInspector 物件的集合,此集合可用來為整個端點上的所有傳入和傳出訊息附加自訂訊息偵測器。

public:
 property System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IDispatchMessageInspector ^> ^ MessageInspectors { System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IDispatchMessageInspector ^> ^ get(); };
public System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IDispatchMessageInspector> MessageInspectors { get; }
member this.MessageInspectors : System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IDispatchMessageInspector>
Public ReadOnly Property MessageInspectors As SynchronizedCollection(Of IDispatchMessageInspector)

屬性值

SynchronizedCollection<IDispatchMessageInspector>

型別 SynchronizedCollection<T>IDispatchMessageInspector 物件。

備註

使用 MessageInspectors 屬性來附加自訂 IDispatchMessageInspector 物件,即可檢查或轉換所有經過端點的訊息。 由於 IDispatchMessageInspector 物件會取得訊息的參考,因此您可以緩衝處理它並檢查本文的複本。

適用於