System::Collections::Generic::BaseDictionary::TryGetValue 方法

BaseDictionary::TryGetValue method

查找带键的值并在找到时检索它。

bool System::Collections::Generic::BaseDictionary<Map>::TryGetValue(const key_t &key, mapped_t &value) const override
参数类型描述
const key_t&要查找的键。
mapped_t&用于存放找到的值的引用。

ReturnValue

如果找到值则为 true 并已检索,否则为 false。

另见