Click or drag to resize

DeviceOpen 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
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Open()
Exceptions
ExceptionCondition
Thrown if there is an error while opening the device connection.
Remarks

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.

See Also