System::Collections::ObjectModel::KeyedCollection::Contains 方法

KeyedCollection::Contains method

检查键是否存在于容器中。

bool System::Collections::ObjectModel::KeyedCollection<TKey, TItem>::Contains(TKey key)
ParameterType描述
TKey要查找的键。

ReturnValue

如果找到键则返回 true,否则返回 false。

另见