MessageFilterTable<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>

FilterData >在KeyValuePair<TKey,TValue><MessageFilter表中查找的 。

返回

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

实现

注解

此方法实现 ContainsICollection<T> 方法。

适用于