LEADTOOLS Barcode (Leadtools.Barcode assembly)
LEAD Technologies, Inc

BarcodeReaderErrorMode Enumeration








Indicates how to handle errors when reading barcodes. .NET support WinRT support Silverlight support
Syntax
'Declaration
 
<SerializableAttribute()>
Public Enum BarcodeReaderErrorMode 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As BarcodeReaderErrorMode
[SerializableAttribute()]
public enum BarcodeReaderErrorMode : System.IComparableSystem.IConvertibleSystem.IFormattable  
ObjectiveC Syntax
Java Syntax
Leadtools.Barcode.BarcodeReaderErrorMode = function() { };
Leadtools.Barcode.BarcodeReaderErrorMode.prototype = {
LeadtoolsMemberMarker(replace me) };
[SerializableAttribute()]
public enum class BarcodeReaderErrorMode : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
Default

Default mode. No errors are ignored and an exception will be thrown immediately if an error occurs at any time.

IgnoreAll

Ignore all errors. When an error occurs, the exception will be saved and passed to the next BarcodeReader.ReadSymbology event (in the BarcodeReadSymbologyEventArgs.Error member).

Remarks

This BarcodeReaderErrorMode enumeration is used as the type for the BarcodeReader.ErrorMode property and is used to determine how to handle the errors when reading barcodes.

The BarcodeReader object might encounter errors when reading barcodes. By default, when an error is encountered, an exception is thrown, usually of type BarcodeException with the BarcodeException.Code set to one of the BarcodeExceptionCode enumeration members, providing more details regarding the error. This is the default behavior.

Sometimes, this behavior may no be desired, for example:

The LEADTOOLS C# and VB Barcode Demo will change the value of BarcodeReader.ErrorMode to IgnoreAll and use the BarcodeReader.ReadSymbology event to show the errors encountered in a list box.

Note that when the BarcodeReader does not find any barcodes in the image, no exception is thrown. Instead, BarcodeReader.ReadBarcode and BarcodeReader.ReadBarcodes methods will return null (Nothing in Visual Basic) or an empty array of BarcodeData instead.

Example

For an example, refer to BarcodeReader.ErrorMode

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Barcode.BarcodeReaderErrorMode

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Leadtools.Barcode Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Barcode requires a Barcode Module license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features