Click or drag to resize

DeviceEnable Method

This method can be used to display the device interface and invoke an acquisition instead of using Acquire.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Enable()
Exceptions
ExceptionCondition
Thrown if the current State is not TwainState.SourceOpen.
Thrown if there is a Twain error while enabling the interface.
Remarks

The normal Acquire method will close the device interface after all items have been transferred. Using the Enable method allows the device interface to remain open after the acquire, and will only close when the Disable method is called.

By default, Enable is an asynchronous method and will return before the transfer has completed. Setting the ModalAcquire property can force this method to wait until the acquisition has finished before returning.

See Also