Gs1ElementStringToEpc(GcpLengthTable, 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.ApiAssembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntaxpublic virtual Epc ToEpc(
GcpLengthTable gcpLengthTable,
EpcScheme[] preferredSchemes
)
Parameters
- gcpLengthTable GcpLengthTable
- Table from which to infer the length of the GS1 Company Prefix
from the information in the specified length table
- preferredSchemes EpcScheme
- A list of the EPC schemes that may be considered to construct
the result, in order of preference
Return Value
Epc
ExceptionsException | Condition |
---|
Gs1Exception | if this element string does not contain the AI(s) required to create
an EPC of any of the specified schemes. |
UnknownGcpLengthException | if the GS1 Company Prefix length could not be inferred
|
See Also