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

## JsonElement::TryGetProperty(ReadOnlySpan\<char16_t\>, JsonElement\&) method




```cpp
bool System::Text::Json::JsonElement::TryGetProperty(ReadOnlySpan<char16_t> propertyName, JsonElement &value)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## JsonElement::TryGetProperty(ReadOnlySpan\<uint8_t\>, JsonElement\&) method




```cpp
bool System::Text::Json::JsonElement::TryGetProperty(ReadOnlySpan<uint8_t> utf8PropertyName, JsonElement &value)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## JsonElement::TryGetProperty(String, JsonElement\&) method




```cpp
bool System::Text::Json::JsonElement::TryGetProperty(String propertyName, JsonElement &value)
```

## See Also

* Class [String](../../../system/string/)
* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
