VintaSoft Twain .NET SDK 15.4: Documentation for Web developer
Vintasoft.Twain Namespace / WebTwainDeviceJS type / setCapability Methods / setCapability(number,string) Property
Syntax Exceptions Remarks BrowserCompatibility SeeAlso
In This Topic
setCapability(number,string) Method
In This Topic
Sets value of TWAIN device capability.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);

var value; // Type: Vintasoft.Twain.WebTwainCapabilityInfoJS

// Parameters
var twainCapabilityId; // Type: number
var twainCapabilityValue; // Type: string

value = instance.setCapability(twainCapabilityId, twainCapabilityValue);

Parameters

twainCapabilityId
An identifier of TWAIN device capability as a number.
twainCapabilityValue
A string that represents value that should be set to the TWAIN device capability.

Return Value

An instance of WebTwainCapabilityInfoJS class.
Exceptions
ExceptionDescription
Thrown if arguments have wrong types OR device is not opened OR error occurs during setting value of device capability.
Remarks

This function sends a synchronous request to set value of TWAIN device capability. If you want to use asynchronous request instead of synchronous request, please use WebTwainDeviceJS.setCapabilityAsync function.

Browser Compatibility
9
See Also