---
title: "System::Text::Json::JsonElement::TryGetUInt16 method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/jsonelement/trygetuint16/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use TryGetUInt16 method of System::Text::Json::JsonElement class in C++."
---

## JsonElement::TryGetUInt16 method




```cpp
bool System::Text::Json::JsonElement::TryGetUInt16(uint16_t &value)
```

## See Also

* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
