Allows to acquire images from the scanner asynchronously. This function will return immediately.
            
Namespace: TwainScanning
Assembly: TwainScanning (in TwainScanning.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
public void AcquireAsync( IImageCollector collector, bool showUI, bool closeUIAfterAcquire = true, Nullable<TwSX> transferMechanism = 0, Nullable<int> count = -1 )
Parameters
- collector
 - Type: TwainScanning.CollectorsIImageCollector
The collector. - showUI
 - Type: SystemBoolean
if set to true [show UI]. - closeUIAfterAcquire (Optional)
 - Type: SystemBoolean
if set to true [close UI after acquire]. - transferMechanism (Optional)
 - Type: SystemNullableTwSX
The transfe mode. - count (Optional)
 - Type: SystemNullableInt32
The count. Use -1 to acquire all images. 
Exceptions
| Exception | Condition | 
|---|---|
| TwainException | Collector can NOT be used if transfer mechanism is TwSX.File or TwSX.MemFile! | 
See Also