Class HIBCLICPrimaryDataCodetext

Class HIBCLICPrimaryDataCodetext

名称: Aspose.BarCode.ComplexBarcode 合計: Aspose.BarCode.dll (25.4.0)

HIBC LIC コードに組み込まれたテキストを暗号化および解読するためのクラスは、基本データを保存します。

public class HIBCLICPrimaryDataCodetext : HIBCLICComplexCodetext, IComplexCodetext

Inheritance

object HIBCLICComplexCodetext HIBCLICPrimaryDataCodetext

Implements

IComplexCodetext

相続人

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

このサンプルでは、HIBCLICPrimaryDataCodetext を使用して HIBCLIC LIC を暗号化および解読する方法を示しています。

HIBCLICPrimaryDataCodetext complexCodetext  = new HIBCLICPrimaryDataCodetext();
complexCodetext.BarcodeType = EncodeTypes.HIBCQRLIC;
complexCodetext.Data = new PrimaryData();
complexCodetext.Data.ProductOrCatalogNumber = "12345";
complexCodetext.Data.LabelerIdentificationCode = "A999";
complexCodetext.Data.UnitOfMeasureID = 1;
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;
        HIBCLICPrimaryDataCodetext result = (HIBCLICPrimaryDataCodetext)ComplexCodetextReader.TryDecodeHIBCLIC(codetext);
        Console.WriteLine("Product or catalog number: " + result.Data.ProductOrCatalogNumber);
        Console.WriteLine("Labeler identification code: " + result.Data.LabelerIdentificationCode);
        Console.WriteLine("Unit of measure ID: " + result.Data.UnitOfMeasureID);
    }
}

Constructors

トップページ > デジタルコード()

public HIBCLICPrimaryDataCodetext()

Properties

Data

初期データを確認します。

public PrimaryData Data { get; set; }

不動産価値

PrimaryData

Methods

Equals(対象)

このインスタンスが指定された Aspose.BarCode.ComplexBarcode.HIBCLICPrimaryDataCodetext 値に等しいかどうかを示す値を返します。

public override bool Equals(object obj)

Parameters

obj object

A Aspose.BarCode.ComplexBarcode.HIBCLICPrimaryDataCodetext 値は、この例と比較します。

Returns

bool

真実 obj がこの例と同じ価値を持っている場合、そうでなければ、 The translation of the value “false” to Japanese is “偽” (pronounced “gi”)..

GetConstructedCodetext()

コードテキスト作成

public override string GetConstructedCodetext()

Returns

string

構築コードテキスト

GetHashCode()

この例のハッシュコードを返します。

public override int GetHashCode()

Returns

int

32ビットのハッシュコードがサインされています。

InitFromString(ストレッチ)

構築されたコードテキストから例を開始します。

public override void InitFromString(string constructedCodetext)

Parameters

constructedCodetext string

構築コードテキスト

 日本語