VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceManagerJS type / get_DefaultDevice Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    get_DefaultDevice Method
    In This Topic
    Gets the default TWAIN/SANE device.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceManagerJS(service);
    
    var value; // Type: Vintasoft.Twain.WebTwainDeviceJS
    value = instance.get_DefaultDevice();
    
    
    function get_DefaultDevice() : WebTwainDeviceJS;
    

    Return Value

    WebTwainDeviceJS object if device manager has default device; null if default device is not found.
    Exceptions
    ExceptionDescription
    Thrown if TWAIN device manager is not opened OR information about TWAIN devices is not received.
    Remarks

    This property sends a synchronous request to get the default TWAIN device. If you want to use asynchronous request instead of synchronous request, please use WebTwainDeviceManagerJS.getDevicesAsync function.

    Browser Compatibility
    9
    See Also