Click or drag to resize

GcpLengthTable Interface

Infers the length of the GS1 Company Prefix for a specified GS1 key. Different implementations of this class may reference different data sources and use different methods to make the inference. Clients may implement this interface to create their own strategies for GCP length lookup. For a simple implementation that maps prefixes to GCP length, see PrefixGcpLengthTable To use GS1-provided GCP length data, see Gs1GcpLengthTable

Namespace: GS1.EPC.Api
Assembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntax
C#
public interface GcpLengthTable

The GcpLengthTable type exposes the following members.

Methods
 NameDescription
Public methodGcpLength(String) Given a GS1 key, returns the length of the GS1 Company Prefix, or throws UnknownGcpLengthException. Matching is assumed to begin with the first character, so for a GTIN-14 or SSCC the initial digit must first be stripped away before calling this method.
Public methodGcpLength(String, Int32) Given a GS1 key, returns the length of the GS1 Company Prefix, or throws UnknownGcpLengthException. Matching begins with the specified start character position.
Top
See Also