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

KeyedCollection::Contains method

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

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

ReturnValue

如果找到键则为 true,否则为 false。

另见