---
title: "method"
url: "https://reference.aspose.com/barcode/cpp/aspose.barcode.generation/databarparameters/get_allowonlygs1encoding/"
product: "Aspose.BarCode for C++ API Reference"
description: " method. If this flag is set, it allows only GS1 encoding standard for Databar barcode types in C++."
---

## DataBarParameters::get_AllowOnlyGS1Encoding method


If this flag is set, it allows only GS1 encoding standard for Databar barcode types

```cpp
bool Aspose::BarCode::Generation::DataBarParameters::get_AllowOnlyGS1Encoding() const
```

## See Also

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