VintaSoftTwain Control v6.0
VintaSoftTwain Object / Device_Close Method
In This Topic
    Device_Close Method
    In This Topic
    Description
    Closes the device.
    Syntax
    Visual Basic
    Public Function Device_Close() As Boolean
    Return Type
    TRUE (1) if device is closed successfully, FALSE (0) otherwise.
    Remarks
    Call this method only when device is opened (Device_State == enumDevice_State.DeviceOpened) or device is enabled (Device_State == enumDevice_State.DeviceEnabled).

    Important: Do not call this method when device is transferring images (Device_State == enumDevice_State.DeviceIsReadyToTransferImage or Device_State == enumDevice_State.DeviceTransferringImage) - you need to cancel transfer with the Device_CancelImageTransfer method and only then call this method.

    Information about error that occurs during method execution can be get using the Error and ErrorString properties.
    See Also