XPathMessageFilterTable<TFilterData>.Contains(KeyValuePair<MessageFilter,TFilterData>) 方法

定义

确定筛选器表是否包含指定的筛选器及其关联的 FilterDataDetermines whether the filter table contains a specified filter and its associated FilterData.

public:
 virtual bool Contains(System::Collections::Generic::KeyValuePair<System::ServiceModel::Dispatcher::MessageFilter ^, TFilterData> item);
public bool Contains (System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageFilter,TFilterData> item);
abstract member Contains : System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageFilter, 'FilterData> -> bool
override this.Contains : System.Collections.Generic.KeyValuePair<System.ServiceModel.Dispatcher.MessageFilter, 'FilterData> -> bool
Public Function Contains (item As KeyValuePair(Of MessageFilter, TFilterData)) As Boolean

参数

item
KeyValuePair<MessageFilter,TFilterData>

要在表中查找的 KeyValuePair<TKey,TValue> <MessageFilter, FilterData>。The KeyValuePair<TKey,TValue> <MessageFilter, FilterData> to find in the table.

返回

如果筛选器表中包含 filter/FilterData 对,则为 true;否则为 falsetrue if the filter/FilterData pair is contained in the filter table; otherwise false.

实现

注解

如果找到了筛选器,但对应不同的数据,则此方法返回 falseThis method returns false if the filter is found but corresponds to different data.

适用于