ReadOnlyDictionary<K,V>.ContainsKey(K) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the ReadOnlyDictionary contains an element with the specified key.
public:
virtual bool ContainsKey(K key);
public bool ContainsKey (K key);
abstract member ContainsKey : 'K -> bool
override this.ContainsKey : 'K -> bool
Public Function ContainsKey (key As K) As Boolean
Parameters
- key
- K
The key to locate in the ReadOnlyDictionary.
Returns
true if the ReadOnlyDictionary contains an element with the key; otherwise, false.
Implements
Exceptions
Thrown when key is null.