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.
| Exception | Description |
|---|---|
| Thrown if arguments have wrong types OR device is not opened OR error occurs during setting value of device capability. |
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.