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

## ThrowHelper::ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(const TypeInfo\&) method




```cpp
template<typename TAttribute> static void System::Text::Json::ThrowHelper::ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(const TypeInfo &classType)
```

## See Also

* Class [TypeInfo](../../../system/typeinfo/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(const TypeInfo\&, const TypeInfo\&) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(const TypeInfo &classType, const TypeInfo &attribute)
```

## See Also

* Class [TypeInfo](../../../system/typeinfo/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
