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

## ThrowHelper::ThrowInvalidOperationException_TypeDicriminatorIdIsAlreadySpecified method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationException_TypeDicriminatorIdIsAlreadySpecified(const TypeInfo &baseType, System::SharedPtr<Object> typeDiscriminator)
```

## 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++](../../../)
