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

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