XPathMessageFilterTable<TFilterData>.Contains 方法

定义

确定筛选器表是否包含指定的筛选器及其关联的 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>。

返回

Boolean

如果筛选器表中包含 filter/FilterData 对,则为 true;否则为 false

实现

注解

如果找到了筛选器,但对应不同的数据,则此方法返回 false

适用于