• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class GS1ApplicationIdentifier

Describes a GS1 Application Identifier (AI) and the format of its data field.

Inheritance
object
GS1ApplicationIdentifier
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DRIT.Barcode.GS1
Assembly: DRIT.Barcode.dll
Syntax
public sealed class GS1ApplicationIdentifier

Constructors

GS1ApplicationIdentifier(string, string, string, int, int, bool)

Initializes a new GS1ApplicationIdentifier.

Declaration
public GS1ApplicationIdentifier(string ai, string description, string dataFormat, int minLength, int maxLength, bool isNumeric)
Parameters
Type Name Description
string ai

The AI string (2, 3, or 4 digits).

string description

Human-readable description.

string dataFormat

The data format string (e.g. "N14", "X..20").

int minLength

Minimum data length.

int maxLength

Maximum data length.

bool isNumeric

Whether the data is numeric-only.

Properties

AI

Gets the AI string (2, 3, or 4 digits), e.g. "01".

Declaration
public string AI { get; }
Property Value
Type Description
string

DataFormat

Gets the data format string, e.g. "N14" or "X..20".

Declaration
public string DataFormat { get; }
Property Value
Type Description
string

Description

Gets the human-readable description, e.g. "GTIN".

Declaration
public string Description { get; }
Property Value
Type Description
string

FixedLength

Gets the fixed data length, or -1 if the field is variable length.

Declaration
public int FixedLength { get; }
Property Value
Type Description
int

IsNumeric

Gets whether the data field is numeric-only.

Declaration
public bool IsNumeric { get; }
Property Value
Type Description
bool

IsVariableLength

Gets whether the data field has variable length.

Declaration
public bool IsVariableLength { get; }
Property Value
Type Description
bool

MaxLength

Gets the maximum data length.

Declaration
public int MaxLength { get; }
Property Value
Type Description
int

MinLength

Gets the minimum data length.

Declaration
public int MinLength { get; }
Property Value
Type Description
int

Methods

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX