Click or drag to resize

EpcPatternFromComponents Method

Creates an EpcPattern instance from the specified EPC scheme and components. The resulting EpcPattern instance will have an pure identity EPC Pattern URI consisting of urn:epc:idpat:, the specified EPC scheme name, a colon (:) character, and the specified components separated by dot (.) characters with %xx escape sequences as required to conform to URI syntax.

Example: fromComponents(EpcScheme.SGTIN, "0614141", "112345", "*") returns an EpcPattern instance whose pure identity EPC Pattern URI is urn:epc:idpat:sgtin:0614141.112345.*.


Namespace: GS1.EPC.Api
Assembly: epc-epconly (in epc-epconly.dll) Version: 2.1.0.28145 (2.1.0.0)
Syntax
C#
public static EpcPattern FromComponents(
	EpcScheme scheme,
	params string[] components
)

Parameters

scheme  EpcScheme
 
components  String
 

Return Value

EpcPattern
Exceptions
ExceptionCondition
EpcException if the number of components specified is not appropriate for the specified EPC scheme, if any component has inappropriate syntax, or if the resulting EpcPattern would be invalid for any other reason.
See Also