VintaSoft Twain .NET SDK 15.0: Documentation for .NET developer
Vintasoft.WpfTwain Namespace / Device Class / Enable() Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    Enable() Method (Device)
    In This Topic
    Enables the device.
    Syntax
    'Declaration
    
    Public Sub Enable()
    
    
    public void Enable()
    
    
    public: void Enable()
    
    
    public:
    void Enable()
    Exceptions
    ExceptionDescription
    Thrown if device is disposed.
    Thrown if device is enabled already or transferring images.
    Thrown if device is not enabled.
    Thrown if the .NET debugger is used and the function evaluation requires all threads to run.
    Remarks

    Call this method only when device is closed (State == DeviceState.Closed) or device is opened (State == DeviceState.Opened).

    Requirements

    Target Platforms: .NET 8, .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also