Sets the current capability using the container type specified by CapType property.
The current capability is specified by Capability property.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
Return Value
True indicates success. False indicates failure.
Remarks
For different capability container types,
The properties need to be set are different.
Before calling CapSet(), the corresponding properties should be set.
Refer to How to Negotiate Capability with Different Capability Container Types for details.
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |