Edit

Share via


ReadOnlyDictionary<K,V>.ContainsKey(K) Method

Definition

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.

Applies to