MessageFilter.CreateFilterTable<FilterData> 方法

定义

创建与指定类型的数据相关联的筛选器的筛选器表。Creates a filter table for a filter that has a specified type of data associated with it.

protected public:
generic <typename FilterData>
 virtual System::ServiceModel::Dispatcher::IMessageFilterTable<FilterData> ^ CreateFilterTable();
protected internal virtual System.ServiceModel.Dispatcher.IMessageFilterTable<FilterData> CreateFilterTable<FilterData> ();
abstract member CreateFilterTable : unit -> System.ServiceModel.Dispatcher.IMessageFilterTable<'FilterData>
override this.CreateFilterTable : unit -> System.ServiceModel.Dispatcher.IMessageFilterTable<'FilterData>
Protected Friend Overridable Function CreateFilterTable(Of FilterData) () As IMessageFilterTable(Of FilterData)

类型参数

FilterData

与表中的筛选器关联的数据。Data associated with the filters in the table.

返回

IMessageFilterTable<FilterData>

IMessageFilterTable<TFilterData> 关联的筛选器可以添加到的 FilterData 对象。An IMessageFilterTable<TFilterData> object to which filters associated with FilterData can be added.

注解

此方法应由 MessageFilterTable<TFilterData> 调用。This method is intended to be called by MessageFilterTable<TFilterData>. 用户应通过调用筛选器表的构造函数来创建筛选器表。Users should create a filter table by calling a constructor for the filter table. 此方法的默认实现返回筛选器表,该表按顺序调用每个筛选器的 Match 方法。The default implementation of this method returns a filter table that calls the Match method of each filter sequentially. 当实现筛选器时,重写此方法来与自定义筛选器表相关联。Override this method to associate a custom filter table when implementing a filter.

适用于