Sets the current capability using the container type specified by CapType property. The current capability is specified by Capability property.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public bool CapSet()
Visual Basic
Public Function CapSet As Boolean

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

ExceptionCondition
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.

See Also