共用方式為


DispatchRuntime.OperationSelector 屬性

定義

取得或設定 IDispatchOperationSelector 物件,此物件會控制選取特定訊息的目的地 DispatchOperation

public:
 property System::ServiceModel::Dispatcher::IDispatchOperationSelector ^ OperationSelector { System::ServiceModel::Dispatcher::IDispatchOperationSelector ^ get(); void set(System::ServiceModel::Dispatcher::IDispatchOperationSelector ^ value); };
public System.ServiceModel.Dispatcher.IDispatchOperationSelector OperationSelector { get; set; }
member this.OperationSelector : System.ServiceModel.Dispatcher.IDispatchOperationSelector with get, set
Public Property OperationSelector As IDispatchOperationSelector

屬性值

IDispatchOperationSelector

IDispatchOperationSelector 物件。

備註

使用 OperationSelector 屬性,即可決定哪個作業要接收指定的訊息。 預設的作業選取器會傳回訊息的動作標頭值,該值會用來做為找出正確 DispatchOperation 的索引鍵。 如果找不到相符的作業,該叫用就會分派給 UnhandledDispatchOperation 屬性的傳回值。

適用於