Apostrophe Systems EPC Generator 2.0

EPCBase Constructor (Uri)

Constructor that takes a Uri

public EPCBase(
   Uri tagURI
);

Parameters

tagURI
Uri

Remarks

This constructor makes it possible to initialize the EPCBase derived class with an EPC-TAG URI. If this constructor is going to be used with a 64-Bit EPC Number, enusre that the Company Prefix Index is configured correctly. see EPCConfiguration

Example

//96-Bit SGTIN
System.Uri uri = new System.Uri("urn:epc:tag:sgtin-96:3.0652642.0000031.1000");
EPCBase epc = new EPCBase(uri);
//Encode the epc number to the configured encoding format (See the EPC Configuration Help section)
string epcNumber = epc.Encode();

See Also

EPCBase Class | Apostrophe.EPC Namespace | EPCBase Constructor Overload List