---
title: "method"
url: "https://reference.aspose.com/barcode/cpp/aspose.barcode.complexbarcode/usadriveidjurisdsubfile/insert/"
product: "Aspose.BarCode for C++ API Reference"
description: " method. Inserts the specified DataElement at the given index. If a DataElement with the same ElementID already exists, it will be replaced in C++."
---

## USADriveIdJurisdSubfile::Insert method


Inserts the specified **DataElement** at the given index. If a **DataElement** with the same ElementID already exists, it will be replaced.

```cpp
System::SharedPtr<USADriveIdJurisdSubfile::DataElement> Aspose::BarCode::ComplexBarcode::USADriveIdJurisdSubfile::Insert(int32_t index, System::SharedPtr<USADriveIdJurisdSubfile::DataElement> node)
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | The zero-based index at which the element should be inserted. |
| node | System::SharedPtr\<USADriveIdJurisdSubfile::DataElement\> | The **DataElement** instance to insert or replace at the target position. |

### ReturnValue

The **DataElement** that was inserted or used to replace an existing entry.

## See Also

* Class [USADriveIdJurisdSubfile](../)
* Namespace [Aspose::BarCode::ComplexBarcode](../../)
* Library [Aspose.BarCode for C++](../../../)
