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

## ThrowHelper::ThrowArgumentException_DeserializeWrongType method




```cpp
static void System::Text::Json::ThrowHelper::ThrowArgumentException_DeserializeWrongType(const TypeInfo &type, System::SharedPtr<Object> value)
```

## See Also

* Class [TypeInfo](../../../system/typeinfo/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
