Click or drag to resize

Gs1ElementStringToEpc(Int32, EpcScheme) Method

Returns an Epc instance having one of the specified EPC schemes, derived from the corresponding AIs in this GS1 element string. The EPC scheme of the result will be the scheme having the least index in the specified array, such that this element string contains the AI(s) required to construct an EPC of that scheme. This element string may contain other AIs apart from the AI(s) used to construct the result; they are ignored.

Namespace: GS1.EPC.Api
Assembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntax
C#
public virtual Epc ToEpc(
	int gcpLength,
	EpcScheme[] preferredSchemes
)

Parameters

gcpLength  Int32
The length of the GS1 Company Prefix contained within the AI to be converted to an EPC
preferredSchemes  EpcScheme
A list of the EPC schemes that may be considered to construct the result, in order of preference

Return Value

Epc
Exceptions
ExceptionCondition
Gs1Exception if this element string does not contain the AI(s) required to create an EPC of any of the specified schemes.
See Also