DataCollection<TKey,TValue>.ContainsKey(TKey) 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 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
.