ImageGear for .NET
CloseSource Method
See Also  Send Feedback
ImageGear21.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : CloseSource Method




Glossary Item Box

This method closes the currently opened Data Source and it also closes the connection with the Data Source Manager.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Exceptions

ExceptionDescription
ImageGear.Core.ImGearExceptionThrown when this method is called but there is not an open connection with a Data Source.

Remarks

When an application is finished with a Data Source, it must formally close the session between them using this method. This is necessary in case the Data Source only supports connection with a single application (many desktop scanners will behave this way). A Data Source such as this cannot be accessed by other applications until its current session is terminated.

See Also

©2013. Accusoft Corporation. All Rights Reserved.