VintaSoft Twain .NET SDK v10.2
ScanFailed Event (Device)




Vintasoft.Twain Namespace > Device Class : ScanFailed Event
Occurs when scan process is failed.
Syntax
'Declaration
 
Public Event ScanFailed As EventHandler(Of ScanFailedEventArgs)
'Usage
 
Dim instance As Device
Dim handler As EventHandler(Of ScanFailedEventArgs)
 
AddHandler instance.ScanFailed, handler
public event EventHandler<ScanFailedEventArgs> ScanFailed
public: __event EventHandler<ScanFailedEventArgs*>* ScanFailed
public:
event EventHandler<ScanFailedEventArgs^>^ ScanFailed
Event Data

The event handler receives an argument of type ScanFailedEventArgs containing data related to this event. The following ScanFailedEventArgs properties provide information specific to this event.

PropertyDescription
Gets the error code of error occured at the acquisition process.  
Remarks
Here is a sequence of events if scan is successfully completed:
Here is a sequence of events if scan is canceled:
Here is a sequence of events if scan is failed:
Example
Please see example here.
Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also