VintaSoft Twain .NET SDK 15.3: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / get_ScanIntent Property
Syntax Exceptions Example BrowserCompatibility SeeAlso
In This Topic
    get_ScanIntent Method
    In This Topic
    Gets the scan intent for WIA/eSCL device.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: string
    value = instance.get_ScanIntent();
    
    
    function get_ScanIntent() : string;
    

    Return Value

    The scan intent for WIA/eSCL device.
    Exceptions
    ExceptionDescription
    Thrown if device is not opened OR error occurs during getting value of device capability.
    Example

    // Gets name of scan intent of opened WIA/eSCL device.
    function getScanIntent(device) {
        try {
            console.log("Device: " + device.get_DeviceName());
            // if device is not opened
            if (!device.get_IsOpened()) {
                console.log("Device is not opened. Please open device.");
                return;
            }
            console.log("Scan intent: " + device.get_ScanIntent());
        }
        catch (ex) {
            alert(ex);
        }
    }
    

    Browser Compatibility
    9
    See Also