## BaseDictionary::GetValueOrDefault(const key_t\&) const method


Returns value if found; or **Value()** otherwise.

```cpp
mapped_t System::Collections::Generic::BaseDictionary<Map>::GetValueOrDefault(const key_t &key) const override
```

## See Also

* Class [BaseDictionary](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
## BaseDictionary::GetValueOrDefault(const key_t\&, const mapped_t\&) const method


Returns value if found; or **defaultValue** otherwise.

```cpp
mapped_t System::Collections::Generic::BaseDictionary<Map>::GetValueOrDefault(const key_t &key, const mapped_t &defaultValue) const override
```

## See Also

* Class [BaseDictionary](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
