Device.Enable Method |
Namespace: Atalasoft.Twain
Exception | Condition |
---|---|
Thrown if the current State is not TwainState.SourceOpen. | |
Thrown if there is a Twain error while enabling the interface. |
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.