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

## ThrowHelper::ThrowInvalidOperationException_CannotSerializeInvalidType method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationException_CannotSerializeInvalidType(const TypeInfo &typeToConvert, const TypeInfo &declaringType, System::SharedPtr<Reflection::MemberInfo> memberInfo)
```

## See Also

* Class [TypeInfo](../../../system/typeinfo/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [MemberInfo](../../../system.reflection/memberinfo/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
