Accusoft.TwainPro8.Net
CloseSession Method
See Also  Send Feedback
Accusoft.TwainProSdk Namespace > TwainDevice Class : CloseSession Method




Glossary Item Box

Disables and closes the current Data Source and Data Source Manager. For every OpenSession or OpenDataSourceManager method call you need to close the TwainPRO session with CloseSession. This method will also Cancel any pending image transfers if the Data Source was in the Image Transfer state.

Syntax

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

Remarks

The StartSession() method calls CloseSession() internally before returning if the CloseSessionAfterAcquisition property is set to true (which is the default value). In this case, it is not necessary to call CloseSession() after StartSession(). If the CloseSessionAfterAcquisition property is set to false, then the session will remain open and return to the Capability Negotiation state after StartSession().

See Also

©2013. Accusoft Corporation. All Rights Reserved.