Device.CanOpen Method |
Note: This API is now obsolete.
This method may be removed in a future version. New applications should use the TryOpen() method instead.
Returns a value indicating whether or not the Open() method can currently be used on the device.
Namespace: Atalasoft.Twain
[ObsoleteAttribute("CanOpen may be removed in a future release. Use TryOpen instead.", false)] public bool CanOpen()
Use this method to test if a device is available instead of using the Open() method and catching the exception if it fails.
This method will return false if the device is already open.
Some drivers will display a message box when the device is not connected or powered off. DotTwain has no control over this message box