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


Returnerar värdet om det hittas; annars **Value()**.

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

## Se även

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


Returnerar värdet om det hittas; annars **defaultValue**.

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

## Se även

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