DataCollection<TKey,TValue>.ContainsKey(TKey) Method

Definition

Determines whether the DataCollection<TKey,TValue> contains a specific key value.

public:
 bool ContainsKey(TKey key);
public bool ContainsKey (TKey key);
member this.ContainsKey : 'Key -> bool
Public Function ContainsKey (key As TKey) As Boolean

Parameters

key
TKey

The key to locate in the collection.

Returns

true if item is found in the DataCollection<TKey,TValue>; otherwise, false.

Applies to