Class SingleDecodeType
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)
نوع فك الشفرة الفردي. راجع نوع فك الشفرة للحصول على الحالة.
public sealed class SingleDecodeType : BaseDecodeType, IEquatable<basedecodetype>, IEquatable<singledecodetype>
الوراثة
object ← BaseDecodeType ← SingleDecodeType
تنفيذ
IEquatable<basedecodetype>, IEquatable<singledecodetype>
الأعضاء الموروثة
BaseDecodeType.ContainsAny(params BaseDecodeType[]), BaseDecodeType.Equals(SingleDecodeType), BaseDecodeType.Equals(MultyDecodeType), BaseDecodeType.Equals(BaseDecodeType), BaseDecodeType.Equals(object), BaseDecodeType.GetHashCode(), BaseDecodeType.TryParse(string, out SingleDecodeType), BaseDecodeType.TryParse(string, out MultyDecodeType), BaseDecodeType.TryParse(string, out BaseDecodeType), object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
أمثلة
تظهر هذه العينة كيفية الحصول على حالة من نوع فك الشفرة الفردي.
SingleDecodeType singleType = DecodeType.QR
Dim singleType As SingleDecodeType
singleType = DecodeType.QR
الخصائص
TypeIndex
يحصل على فهرس نوع فك الشفرة
public short TypeIndex { get; }
قيمة الخاصية
TypeName
يحصل على اسم نوع فك الشفرة
public string TypeName { get; }
قيمة الخاصية
الطرق
ContainsAny(params BaseDecodeType[])
يعيد قيمة تشير إلى ما إذا كانت هذه الحالة مدرجة في القائمة المحددة.
public override bool ContainsAny(params BaseDecodeType[] types)
المعلمات
types
BaseDecodeType[]
مصفوفة من أنواع فك الشفرة الفردية والمتعددة
العائدات
القيمة صحيحة إذا كانت أي أنواع مدرجة في
Equals(SingleDecodeType)
يعيد قيمة تشير إلى ما إذا كانت هذه الحالة متساوية مع قيمة محددة من Aspose.BarCode.BarCodeRecognition.SingleDecodeType.
public override bool Equals(SingleDecodeType other)
المعلمات
other
SingleDecodeType
قيمة Aspose.BarCode.BarCodeRecognition.SingleDecodeType للمقارنة مع هذه الحالة.
العائدات
true إذا كانت obj لها نفس القيمة مثل هذه الحالة؛ خلاف ذلك، false.
Equals(object)
يعيد قيمة تشير إلى ما إذا كانت هذه الحالة متساوية مع قيمة محددة من Aspose.BarCode.BarCodeRecognition.SingleDecodeType.
public override bool Equals(object obj)
المعلمات
obj
object
قيمة System.Object للمقارنة مع هذه الحالة.
العائدات
true إذا كانت obj لها نفس القيمة مثل هذه الحالة؛ خلاف ذلك، false.
GetHashCode()
يعيد رمز التجزئة لهذه الحالة.
public override int GetHashCode()
العائدات
رمز تجزئة صحيح 32 بت.
GetString()
يحول حالة SingleDecodeType إلى تمثيلها النصي المعادل. التنسيق النصي هو: “Index:-1; Name:None”.
public string GetString()
العائدات
سلسلة تمثل القيمة الكاملة لنوع فك الشفرة الفردي
GetString(SingleDecodeType)
يحول حالة SingleDecodeType إلى تمثيلها النصي المعادل. التنسيق النصي هو: “Index:-1; Name:None”.
public static string GetString(SingleDecodeType instance)
المعلمات
instance
SingleDecodeType
حالة SingleDecodeType للتحويل
العائدات
سلسلة تمثل القيمة الكاملة لنوع فك الشفرة الفردي المعطى
Parse(string)
يحول التمثيل النصي لاسم SingleDecodeType إلى حالته.
public static SingleDecodeType Parse(string stringDecodeType)
المعلمات
stringDecodeType
string
سلسلة تحتوي على اسم SingleDecodeType للتحويل.
العائدات
حالة Aspose.BarCode.BarCodeRecognition.SingleDecodeType، إذا كانت التحويلة ناجحة؛ خلاف ذلك، يعيد Aspose.BarCode.BarCodeRecognition.DecodeType.None.
ToString()
يعيد اسم نوع SingleDecodeType المعطى كسلسلة.
public override string ToString()
العائدات
سلسلة تمثل اسم نوع فك الشفرة الفردي