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

## ThrowHelper::ThrowInvalidOperationOrArgumentException(ReadOnlySpan\<char16_t\>, int32_t, int32_t) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationOrArgumentException(ReadOnlySpan<char16_t> propertyName, int32_t currentDepth, int32_t maxDepth)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowInvalidOperationOrArgumentException(ReadOnlySpan\<uint8_t\>, int32_t, int32_t) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowInvalidOperationOrArgumentException(ReadOnlySpan<uint8_t> propertyName, int32_t currentDepth, int32_t maxDepth)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
