Contains()

KeyedCollection::Contains(TKey) method

Checks if key is present in container.

bool System::Collections::ObjectModel::KeyedCollection<TKey, TItem>::Contains(TKey key)

Arguments

ParameterTypeDescription
keyTKeyKey to look for.

Return Value

True if key is found, false otherwise.

See Also