System::Collections::Generic::IDictionary::ContainsKey 方法

IDictionary::ContainsKey method

检查容器是否包含键。

virtual bool System::Collections::Generic::IDictionary<TKey, TValue>::ContainsKey(const TKey &key) const =0
参数类型描述
const TKey&要查找的键。

ReturnValue

如果键存在则为 true,否则为 false。

另见