共用方式為


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

實作

適用於