共用方式為


SortedDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.Contains 方法

定義

判斷 ICollection<T> 是否包含特定索引鍵和值。

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains(System::Collections::Generic::KeyValuePair<TKey, TValue> keyValuePair) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Contains;
bool ICollection<KeyValuePair<TKey,TValue>>.Contains (System.Collections.Generic.KeyValuePair<TKey,TValue> keyValuePair);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains : System.Collections.Generic.KeyValuePair<'Key, 'Value> -> bool
Function Contains (keyValuePair As KeyValuePair(Of TKey, TValue)) As Boolean Implements ICollection(Of KeyValuePair(Of TKey, TValue)).Contains

參數

keyValuePair
KeyValuePair<TKey,TValue>

要在 KeyValuePair<TKey,TValue> 中尋找的 ICollection<T> 結構。

傳回

如果在 true 中找到 keyValuePair,則為 ICollection<T>,否則為 false

實作

適用於

另請參閱