System::Collections::Generic::BaseDictionary::TryGetValue 方法
BaseDictionary::TryGetValue method
查找键值并在找到时检索它。
bool System::Collections::Generic::BaseDictionary<Map>::TryGetValue(const key_t &key, mapped_t &value) const override
| Parameter | Type | 描述 |
|---|---|---|
| 键 | const key_t& | 要查找的键。 |
| value | mapped_t& | 用于存储找到的值的引用。 |
ReturnValue
如果找到并检索到值则为 true,否则为 false。
另见
- Class BaseDictionary
- Namespace System::Collections::Generic
- Library Aspose.Page for C++