Accusoft.TwainProSdk Namespace > TwainDevice Class : CloseSession Method |
'Declaration Public Sub CloseSession()
'Usage Dim instance As TwainDevice instance.CloseSession()
public void CloseSession()
public: void CloseSession();
public: void CloseSession();
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().