'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.
Property | Description |
---|---|
ErrorString | 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:
- for each acquired image
- ImageAcquiring event occurs before image is acquiring
- ImageAcquiringProgress events occurs during image acquisition (only if Memory transfer mode is used)
- ImageAcquired event occurs after image is acquired
- ScanCompleted event occurs when scan is completed
- UserInterfaceClosed event occurs when UI is closed
- ScanFinished event occurs when scan is finished
Here is a sequence of events if scan is canceled:
- for each acquired image
- ImageAcquiring event occurs before image is acquiring
- ImageAcquiringProgress events occurs during image acquisition (only if Memory transfer mode is used)
- ImageAcquired event occurs after image is acquired
- ScanCanceled event occurs when scan is canceled
- ScanFinished event occurs when scan is finished
Here is a sequence of events if scan is failed:
- for each acquired image
- ImageAcquiring event occurs before image is acquiring
- ImageAcquiringProgress events occurs during image acquisition (only if Memory transfer mode is used)
- ImageAcquired event occurs after image is acquired
- ScanFailed event occurs when scan is failed
- ScanFinished event occurs when scan is finished
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