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

## ThrowHelper::ThrowInvalidOperationException_CannotMixEncodings method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationException_CannotMixEncodings(Utf8JsonWriter::EnclosingContainerType previousEncoding, Utf8JsonWriter::EnclosingContainerType currentEncoding)
```

## See Also

* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
