VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / Device Class / Close Method




In This Topic
    Close Method (Device)
    In This Topic
    Closes the device.
    Syntax
    'Declaration
     
    Public Sub Close() 
    'Usage
     
    Dim instance As Device
     
    instance.Close()
    public void Close()
    public: void Close(); 
    public:
    void Close(); 
    Exceptions
    ExceptionDescription
    Thrown if device is disposed.
    Thrown if device is transferring images.
    Thrown if the .NET debugger is used and the function evaluation requires all threads to run.
    Remarks
    Call this method only when device is opened (State == DeviceState.Opened) or device is enabled (State == DeviceState.Enabled).

    Important: Do not call this method when device is transferring images (State == DeviceState.TransferReady or State == DeviceState.Transferring) - you need to cancel transfer with the CancelTransfer method and only then call this method.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also