Gs1ElementStringToEpc(Int32, EpcScheme) Method |
Returns an
Epc instance having the specified EPC scheme, derived
from the corresponding AIs in this GS1 element string.
This element string must contain the AI or AIs corresponding to the specified
EPC scheme as follows:
EPC Scheme | AIs |
---|
SGTIN | GTIN (AI 01) + SERIAL (AI 21) |
SSCC | SSCC (AI 00) |
SGLN | GLN (AI 414), with or without GLN Extension (AI 254) |
GRAI | GRAI (AI 8003) that includes the optional serial number |
GIAI | GIAI (AI 8004) |
GDTI | GDTI (AI 253) that includes the optional serial number |
GSRN | GSRN-Recipient (AI 8018) |
GSRNP | GSRN-Provider (AI 8017) |
CPI | CPID (AI 8010) + CPID SERIAL (AI 8011) |
SGCN | GCN (AI 255) that includes the optional serial number |
GINC | GINC (AI 401) |
GSIN | GSIN (AI 402) |
ITIP | ITIP (AI 8006) + SERIAL (AI 21) |
This element string may contain other AIs; they are ignored.
Namespace: GS1.EPC.ApiAssembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntaxpublic virtual Epc ToEpc(
int gcpLength,
EpcScheme scheme
)
Parameters
- gcpLength Int32
- The length of the GS1 Company Prefix contained within the AI to be
converted to an EPC
- scheme EpcScheme
- The desired EPC scheme
Return Value
Epc
ExceptionsException | Condition |
---|
Gs1Exception | if this element string does not contain the AI(s) required to create
an EPC of the specified scheme.
|
See Also