Disables the source. If the source's user interface is displayed when the source is enabled, it will be closed.

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

Syntax

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

Return Value

True indicates success. False indicates failure.

Remarks

After DisableSource(), the Source is returned to State 4(Source is opened but not enabled), where capability negotiation can be done again.

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