Closes Data Source.

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

Syntax

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

Return Value

True indicates success. False indicates failure.

Remarks

CloseSource() will be called automatically when exiting the application, since Dynamic .NET TWAIN has built-in Wizard Mode.

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