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