## IDictionary::GetValueOrDefault(const TKey\&) const method


Возвращает значение, если найдено; иначе **Value()**.

```cpp
virtual TValue System::Collections::Generic::IDictionary<TKey, TValue>::GetValueOrDefault(const TKey &key) const
```

## См. также

* Class [IDictionary](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
## IDictionary::GetValueOrDefault(const TKey\&, const TValue\&) const method


Возвращает значение, если найдено; иначе **defaultValue**.

```cpp
virtual TValue System::Collections::Generic::IDictionary<TKey, TValue>::GetValueOrDefault(const TKey &key, const TValue &defaultValue) const
```

## См. также

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