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

## ThrowHelper::ThrowJsonException_DuplicatePropertyNotAllowed() method




```cpp
static void System::Text::Json::ThrowHelper::ThrowJsonException_DuplicatePropertyNotAllowed()
```

## See Also

* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowJsonException_DuplicatePropertyNotAllowed(ReadOnlySpan\<uint8_t\>) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowJsonException_DuplicatePropertyNotAllowed(ReadOnlySpan<uint8_t> nameBytes)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowJsonException_DuplicatePropertyNotAllowed(String) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowJsonException_DuplicatePropertyNotAllowed(String name)
```

## See Also

* Class [String](../../../system/string/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## ThrowHelper::ThrowJsonException_DuplicatePropertyNotAllowed(System::SharedPtr\<Serialization::Metadata::JsonPropertyInfoBase\>) method




```cpp
static void System::Text::Json::ThrowHelper::ThrowJsonException_DuplicatePropertyNotAllowed(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase> property)
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [JsonPropertyInfoBase](../../../system.text.json.serialization.metadata/jsonpropertyinfobase/)
* Class [ThrowHelper](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
