Gs1Element Class
Represents a GS1 element string: an application identifier (AI) and the data it qualifies, such as AI 01 (GTIN) and 09521234543213.
public sealed class Gs1ElementRemarks
The data does not include the parentheses of the human-readable interpretation: they are printed under the bars but are not encoded. The application identifier and the data are checked against the syntax rules every GS1 element follows, not against the GS1 dictionary of application identifiers (the format of the data of each identifier).
Constructors
| Name | Description |
|---|---|
| Gs1Element(string, string) | Initializes a new instance of the Gs1Element class. |
Gs1Element(string, string)
Gs1Element.csInitializes a new instance of the Gs1Element class.
Parameters
applicationIdentifierstring- The application identifier: 2 to 4 digits, without parentheses.
valuestring- The data: characters of the GS1 AI encodable character set 82 (letters, digits and
!"%&'()*+,-./:;<=>?_). The application identifiers whose data has a predefined length (00to04,11to20,31nnto36nnand41n) require digits of that length.
Exceptions
ArgumentException- The application identifier or the data is not valid.
Properties
| Name | Description |
|---|---|
| ApplicationIdentifier | Gets the application identifier, such as 01. |
| Value | Gets the data that the application identifier qualifies. |
ApplicationIdentifier
Gs1Element.csValue
Gs1Element.csMethods
| Name | Description |
|---|---|
| ToString() | Returns the human-readable interpretation of the element string, such as (01)09521234543213. |