VintaSoft Twain .NET SDK 15.2: Документация для Веб разработчика
Vintasoft.Twain Namespace / WebTwainDeviceJS type / get_EsclScanIntent Property
Синтаксис Exceptions Example Совместимость с браузерами Смотрите также
В этом разделе
    get_EsclScanIntent Метод
    В этом разделе
    Возвращает цель сканирования для устройства eSCL.
    Синтаксис
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var value; // Type: string
    value = instance.get_EsclScanIntent();
    
    
    function get_EsclScanIntent() : string;
    

    Return Value

    Цель сканирования для устройства eSCL.
    Исключения
    ИсключениеОписание
    Выбрасывается, если устройство не открыто ИЛИ возникает ошибка при получении значения возможностей устройства.
    Пример

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

    Совместимость с веб браузерами
    9
    Смотрите также