---
title: "method"
url: "https://reference.aspose.com/barcode/cpp/aspose.barcode.complexbarcode/gs1digitallink/set_barcodetype/"
product: "Aspose.BarCode for C++ API Reference"
description: " method. Sets the barcode type used to encode this GS1 Digital Link. Supported types are QR, DataMatrix, Aztec, Pdf417, MicroPdf417, DotCode, HanXin, CodablockF and Code128. The default value is QR in C++."
---

## GS1DigitalLink::set_BarcodeType method


Sets the barcode type used to encode this GS1 Digital Link. Supported types are QR, DataMatrix, Aztec, Pdf417, MicroPdf417, DotCode, HanXin, CodablockF and Code128. The default value is QR.

```cpp
void Aspose::BarCode::ComplexBarcode::GS1DigitalLink::set_BarcodeType(System::SharedPtr<Generation::BaseEncodeType> value)
```

## See Also

* Class [BaseEncodeType](../../../aspose.barcode.generation/baseencodetype/)
* Class [GS1DigitalLink](../)
* Namespace [Aspose::BarCode::ComplexBarcode](../../)
* Library [Aspose.BarCode for C++](../../../)
