VintaSoft Twain .NET SDK 15.0: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / set_LampState Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
    set_LampState Method
    In This Topic
    Sets a value indicating whether the lamp of device is on.
    Syntax
    var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
    
    var returnValue; // Type: any
    
    // Parameters
    var value; // Type: boolean
    
    returnValue = instance.set_LampState(value);
    
    
    function set_LampState(
    value
    A value indicating whether the lamp of device is on.
    : boolean
    ) : any;

    Parameters

    value
    A value indicating whether the lamp of device is on.
    Exceptions
    ExceptionDescription
    Thrown if device is not opened OR error occurs during setting value of device capability.
    Remarks

    This property sends a synchronous request to set value of WebDeviceCapabilityIdEnumJS.ILampState capability. If you want to use asynchronous request instead of synchronous request, please set value of WebDeviceCapabilityIdEnumJS.ILampState capability using WebTwainDeviceJS.setCapabilityAsync or WebTwainDeviceJS.setCapabilitiesAsync function.

    Browser Compatibility
    9
    See Also