Click or drag to resize

GcpLengthTableGcpLength(String) Method

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.

Namespace: GS1.EPC.Api
Assembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntax
C#
int GcpLength(
	string key
)

Parameters

key  String
 

Return Value

Int32
See Also