Device.Open Method |
Opens a connection to this device.
You must open a connection to the device before getting or setting any device properties. If you don't need to get or set any properties, you can call the Acquire() method without using the Open or Close() methods.
TryOpen() is the preferred way to open a connection to the device.
Namespace: Atalasoft.Twain
Exception | Condition |
---|---|
Thrown if there is an error while opening the device connection. |
A preferred method may be to use TryOpen() instead of catching an exception if Open fails.
You must Close() a connection to the device if you open it.
Use the CanOpen() method to determine if a device is currently in use.