Apostrophe Systems EPC Generator 2.0

GID Class

Represents a GID. GID is not an EAN.UCC Format so this class, although it derives from EPCBase,will provide different

Encode
overrides. Also, GIDs only come in the 96 Bit variety. There is no 64-Bit GID.

For a list of all members of this type, see GID Members.

System.Object
   Apostrophe.EPC.EPCBase
      Apostrophe.EPC.GID

public class GID : EPCBase

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

 //create a GID EPC Number, no need to specify the size because only 96 bits are created.
   GID gid = new GID();
 //Supply the Global Manager Number, Object Class and Serial Number
   gid.Encode(123456789,12345,1);
 //write the GID Encoding to the console in the default format of HEX.
   Console.Write(gid.ToString());
   
 //ToXml() will return this XML Document
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
 <Tag type='GID' size='96'>
 <Fields>
 <Field name='Header' value='53'/>
 <Field name='GeneralManagerNumber' value='123456789'/>
  <Field name='ObjectClass' value='12345'/>
  <Field name='SerialNumber' value='1'/>
  </Fields>
  <Encodings>
  <Encoding name='HEX' value='3575BCD15003039000000001'/>
  <Encoding name='BINARY' value='001101010111010110111100110100010101000000000011000000111001000000000000000000000000000000000001'/>
  <Encoding name='URI' value='urn:epc:tag:gid-96:123456789.12345.1'/>
  <Encoding name='PUREIDENTITY' value='urn:epc:id:gid:123456789.12345.1'/>
  </Encodings>
</Tag>

Requirements

Namespace: Apostrophe.EPC

Assembly: Apostrophe.EPC (in Apostrophe.EPC.dll)

See Also

GID Members | Apostrophe.EPC Namespace