Skip to content

ReplaceSmartLabelBarcodeDataAsync

Description

Replaces the barcode data of the specified Smart Label object.

Syntax

public Task ReplaceSmartLabelBarcodeDataAsync(int mapId, string text)

Warning

This method returns a Task. To ensure that the operation completes and any potential exceptions are properly captured, always call it with await. Omitting await may result in the operation being terminated midway or errors may go undetected.

Parameter

mapId

Specifies the map ID of the target object.
The map ID can be checked in the application's UI.

Barcode Object Map ID

text

The barcode data to replace the existing value with.
Even if the specified text is not valid barcode data, no error is raised.
Make sure to validate the barcode data before passing it to this method.