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

BaseDictionary::TryGetValue method

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

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

ReturnValue

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

另见