Click or drag to resize

DeviceCanOpen 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
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
[ObsoleteAttribute("CanOpen may be removed in a future release. Use TryOpen instead.", 
	false)]
public bool CanOpen()

Return Value

Type: Boolean
True if the Open method can currently be used on the device.
Remarks

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

See Also