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 属性的返回值。

适用于