TwainControllerCloseSource Method |
Use this method to close the 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 TwainReturnCode CloseSource()
Public Function CloseSource As TwainReturnCode
Return Value
Type:
TwainReturnCode The result code returned from the driver.
Exceptions Exception | Condition |
---|
| Thrown if the current state is not SourceOpen. |
| Thrown if the current device has not been set. |
Remarks You must close the connection when you are finished with the device.
See Also