Click or drag to resize

Device.Enable 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.5.0.0.0.156 (.NET 4.6.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