## BaseDictionary::TryGetValue method


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

```cpp
bool System::Collections::Generic::BaseDictionary<Map>::TryGetValue(const key_t &key, mapped_t &value) const override
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 键 | const key_t\& | 要查找的键。 |
| 值 | mapped_t\& | 用于存放找到的值的引用。 |

### ReturnValue

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

## 另见

* Class [BaseDictionary](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Font for C++](../../../)
