MessageQueryTable<TItem>.Contains 方法

定义

确定集合是否包含格式化为键/值结构的特定项。

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

参数

item
KeyValuePair<MessageQuery,TItem>

要查找的对象的键。

返回

Boolean

Boolean如果在集合中找到该项,则为 true;否则为 false

实现

适用于