Class HIBCLICSecondaryAndAdditionalDataCodetext

Class HIBCLICSecondaryAndAdditionalDataCodetext

Nama dari : Aspose.BarCode.ComplexBarcode Perhitungan: Aspose.BarCode.dll (25.4.0)

Kelas untuk mengenkripsi dan mengenkripsi teks yang tertanam dalam kode HIBC LIC yang menyimpan data hari kedua.

public class HIBCLICSecondaryAndAdditionalDataCodetext : HIBCLICComplexCodetext, IComplexCodetext

Inheritance

object HIBCLICComplexCodetext HIBCLICSecondaryAndAdditionalDataCodetext

Implements

IComplexCodetext

anggota yang diwarisi

HIBCLICComplexCodetext.GetConstructedCodetext() , HIBCLICComplexCodetext.InitFromString(string) , HIBCLICComplexCodetext.GetBarcodeType() , HIBCLICComplexCodetext.BarcodeType , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Examples

Sampel ini menunjukkan cara mengekod dan mengekod HIBC LIC menggunakan HIBCLICSecondaryAndAdditionalDataCodetext.

HIBCLICSecondaryAndAdditionalDataCodetext complexCodetext = new HIBCLICSecondaryAndAdditionalDataCodetext();
complexCodetext.BarcodeType = EncodeTypes.HIBCQRLIC;
complexCodetext.LinkCharacter = 'L';
complexCodetext.Data = new SecondaryAndAdditionalData();
complexCodetext.Data.ExpiryDate = DateTime.Now;
complexCodetext.Data.ExpiryDateFormat = HIBCLICDateFormat.MMDDYY;
complexCodetext.Data.Quantity = 30;
complexCodetext.Data.LotNumber = "LOT123";
complexCodetext.Data.SerialNumber = "SERIAL123";
complexCodetext.Data.DateOfManufacture = DateTime.Now;
using (ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(complexCodetext))
{
    Bitmap image = generator.GenerateBarCodeImage();
    using (BarCodeReader reader = new BarCodeReader(image, DecodeType.HIBCQRLIC))
    {
        reader.ReadBarCodes();
        string codetext = reader.FoundBarCodes[0].CodeText;
        HIBCLICSecondaryAndAdditionalDataCodetext result = (HIBCLICSecondaryAndAdditionalDataCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext);
        Console.WriteLine("Expiry date: " + result.Data.ExpiryDate);
        Console.WriteLine("Quantity: " + result.Data.Quantity);
        Console.WriteLine("Lot number: " + result.Data.LotNumber);
        Console.WriteLine("Serial number: " + result.Data.SerialNumber);
        Console.WriteLine("Date of manufacture: " + result.Data.DateOfManufacture);
    }
}

Constructors

HYBCLICSecondaryAndAdditionalDataCodetext()

public HIBCLICSecondaryAndAdditionalDataCodetext()

Properties

Data

Mengidentifikasi data sekunder dan tambahan.

public SecondaryAndAdditionalData Data { get; set; }

Nilai Properti

SecondaryAndAdditionalData

LinkCharacter

Mengidentifikasi karakter link.

public char LinkCharacter { get; set; }

Nilai Properti

char

Methods

Equals(objek)

Mengembalikan nilai yang menunjukkan apakah instans ini sama dengan nilai Aspose.BarCode.ComplexBarcode.HIBCLICSecondaryAndAdditionalDataCodetext yang ditentukan.

public override bool Equals(object obj)

Parameters

obj object

Sebuah Aspose.BarCode.ComplexBarcode.HIBCLICSecondaryAndAdditionalDataCodetext nilai untuk dibandingkan dengan instansi ini.

Returns

bool

benar jika obj memiliki nilai yang sama dengan instansi ini; jika tidak, palsu.

GetConstructedCodetext()

Membangun kode teks

public override string GetConstructedCodetext()

Returns

string

Konstruksi kode

GetHashCode()

Kembalikan kode hash untuk kasus ini.

public override int GetHashCode()

Returns

int

32-bit telah menandatangani kode hash lengkap.

InitFromString(String)

Inicialisasi contoh dari kodeks yang dibangun.

public override void InitFromString(string constructedCodetext)

Parameters

constructedCodetext string

Konstruksi kode teks.

 Indonesia