Class BaseDecodeType

Class BaseDecodeType

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)

מחלקה בסיסית עבור MultyDecodeType ו-SingleDecodeType.

public abstract class BaseDecodeType : IEquatable<basedecodetype>

ירושה

objectBaseDecodeType

נגזרות

MultyDecodeType, SingleDecodeType

מיישם

IEquatable<basedecodetype>

חברים מורשים

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

דוגמאות

דוגמה זו מראה כיצד להשתמש ב-BaseDecodeType עם SingleDecodeType ו-MultyDecodeType

BaseDecodeType decodeOne = DecodeType.Code128;
BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.Code128, DecodeType.Code39, DecodeType.Code39FullASCII);
Dim decodeOne As BaseDecodeType = DecodeType.Code128
Dim decodeTwo As BaseDecodeType = New MultyDecodeType(DecodeType.Code128, DecodeType.Code39, DecodeType.Code39FullASCII)

שיטות

ContainsAny(params BaseDecodeType[])

קובע אם כל סוגי הפענוח הנתונים כלולים ב

public abstract bool ContainsAny(params BaseDecodeType[] types)

פרמטרים

types BaseDecodeType[]

סוגים לאימות

מחזיר

bool

ערך הוא true אם כל הסוגים כלולים ב

Equals(SingleDecodeType)

מחזיר ערך המצביע אם מופע זה שווה לערך Aspose.BarCode.BarCodeRecognition.SingleDecodeType שניתן.

public virtual bool Equals(SingleDecodeType other)

פרמטרים

other SingleDecodeType

ערך Aspose.BarCode.BarCodeRecognition.SingleDecodeType להשוואה למופע זה.

מחזיר

bool

true אם obj יש את אותו ערך כמו מופע זה; אחרת, false.

Equals(MultyDecodeType)

מחזיר ערך המצביע אם מופע זה שווה לערך Aspose.BarCode.BarCodeRecognition.MultyDecodeType שניתן.

public virtual bool Equals(MultyDecodeType other)

פרמטרים

other MultyDecodeType

ערך Aspose.BarCode.BarCodeRecognition.MultyDecodeType להשוואה למופע זה.

מחזיר

bool

true אם obj יש את אותו ערך כמו מופע זה; אחרת, false.

Equals(BaseDecodeType)

מחזיר ערך המצביע אם מופע זה שווה לערך Aspose.BarCode.BarCodeRecognition.BaseDecodeType שניתן.

public bool Equals(BaseDecodeType other)

פרמטרים

other BaseDecodeType

ערך Aspose.BarCode.BarCodeRecognition.BaseDecodeType להשוואה למופע זה.

מחזיר

bool

true אם obj יש את אותו ערך כמו מופע זה; אחרת, false.

Equals(object)

מחזיר ערך המצביע אם מופע זה שווה לערך Aspose.BarCode.BarCodeRecognition.BaseDecodeType שניתן.

public override bool Equals(object obj)

פרמטרים

obj object

ערך System.Object להשוואה למופע זה.

מחזיר

bool

true אם obj יש את אותו ערך כמו מופע זה; אחרת, false.

GetHashCode()

מחזיר את קוד ההשגחה עבור מופע זה.

public override int GetHashCode()

מחזיר

int

קוד השגחה של מספר שלם בן 32 סיביות.

TryParse(string, out SingleDecodeType)

ממיר את הייצוג המחרוזתי של SingleDecodeType למופע שלו. ערך החזרה מצביע אם ההמרה הצליחה או נכשלה.

public static bool TryParse(string parsingType, out SingleDecodeType result)

פרמטרים

parsingType string

מחרוזת המכילה SingleDecodeType בפורמט כמו “EAN8” או “EAN13” או “CodaBar”… להמיר.

result SingleDecodeType

SingleDecodeType אמיתי מוחזר, כאשר ההמרה הושלמה בהצלחה; אחרת זה מחזיר סוג בלתי מוגדר: DecodeType.None.

מחזיר

bool

true אם parsingType הומר בהצלחה; אחרת, false.

TryParse(string, out MultyDecodeType)

ממיר את הייצוג המחרוזתי של MultyDecodeType למופע שלו. ערך החזרה מצביע אם ההמרה הצליחה או נכשלה.

public static bool TryParse(string parsingType, out MultyDecodeType result)

פרמטרים

parsingType string

מחרוזת המכילה ייצוג של MultyDecodeType להמיר.

result MultyDecodeType

MultyDecodeType אמיתי מוחזר, כאשר ההמרה הושלמה בהצלחה; אחרת זה מחזיר סוג בלתי מוגדר: new MultyDecodeType(DecodeType.None)

מחזיר

bool

true אם parsingType הומר בהצלחה; אחרת, false.

TryParse(string, out BaseDecodeType)

ממיר את הייצוג המחרוזתי של BaseDecodeType למופע שלו, לאחר שקבע את סוג הקונקרטי. ערך החזרה מצביע אם ההמרה הצליחה או נכשלה.

public static bool TryParse(string parsingType, out BaseDecodeType result)

פרמטרים

parsingType string

מחרוזת המכילה ייצוג של MultyDecodeType להמיר.

result BaseDecodeType

MultyDecodeType אמיתי מוחזר, כאשר ההמרה הושלמה בהצלחה; אחרת זה מחזיר סוג בלתי מוגדר: DecodeType.None.

מחזיר

bool

true אם parsingType הומר בהצלחה; אחרת, false.

 Ελληνικά