共用方式為


ImmutableSortedDictionary<TKey,TValue>.Contains 方法

定義

判斷此不可變排序字典是否包含指定的機碼值組。

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

參數

pair
KeyValuePair<TKey,TValue>

要尋找的索引鍵/值組。

傳回

如果在字典中找到指定的索引鍵/值組,則為 true,否則為 false

實作

適用於