DataSourceAcquireAsync Method (ImageCollectorOnFinishedDelegate, Boolean, Boolean, NullableTwSX, NullableInt32)Terminal Works - TwainScanning.Net Library
Allows to acquire images from the scanner asynchronously.

Namespace: TwainScanning
Assembly: TwainScanning (in TwainScanning.dll) Version: 1.3.4.0 (1.3.4.0)
Syntax

public ImageCollector AcquireAsync(
	ImageCollectorOnFinishedDelegate onFinished,
	bool showUI,
	bool closeUIAfterAcquire = true,
	Nullable<TwSX> transferMechanism = 0,
	Nullable<int> count = -1
)

Parameters

onFinished
Type: TwainScanning.CollectorsImageCollectorOnFinishedDelegate
The on finished.
showUI
Type: SystemBoolean
if set to true show scanners UI.
closeUIAfterAcquire (Optional)
Type: SystemBoolean
if set to true [close UI after acquire].
transferMechanism (Optional)
Type: SystemNullableTwSX
The transfer mechanism.
count (Optional)
Type: SystemNullableInt32
The count.

Return Value

Type: ImageCollector
See Also

Reference