語言

ConcurrentDictionary<TKey,TValue>.IDictionary.Contains(Object) 方法

定義

會得到一個值,表示 包含 IDictionary<TKey,TValue> 一個具有指定鍵的元素。

 virtual bool System.Collections.IDictionary.Contains(System::Object ^ key) = System::Collections::IDictionary::Contains;
bool IDictionary.Contains(object key);
abstract member System.Collections.IDictionary.Contains : obj -> bool
override this.System.Collections.IDictionary.Contains : obj -> bool
Function Contains (key As Object) As Boolean Implements IDictionary.Contains

參數

key
Object

鑰匙要在 IDictionary<TKey,TValue>.

傳回

true 若 包含 IDictionary<TKey,TValue> 具有指定鍵的元素;否則, false。

實作

例外狀況

key 是 null。

適用於

另請參閱