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

## ThrowHelper::ThrowJsonException_MetadataValueWasNotString(JsonTokenType) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowJsonException_MetadataValueWasNotString(JsonTokenType tokenType)
```

## See Also

* Enum [JsonTokenType](../../jsontokentype/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowJsonException_MetadataValueWasNotString(JsonValueKind) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowJsonException_MetadataValueWasNotString(JsonValueKind valueKind)
```

## See Also

* Enum [JsonValueKind](../../jsonvaluekind/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
