Accusoft TwainPRO 9
CloseSession Method
Description
Disables and closes the current data source and Data Source Manager.
Syntax
Visual Basic
Public Sub CloseSession() 
Remarks
For every OpenSession or OpenDSM  (Data Source Manager) method call, you need to close the TwainPRO session with CloseSession. This method cancels any pending image transfers, if the data source was in the image transfer state. 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

TwainPro Object  | TwainPro Members  | StartSession Method  | OpenSession Method  | OpenDSM Method

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback