VintaSoft Twain .NET SDK v10.2
CloseTwainSession Method (VintasoftTwainApi2Controller)




Vintasoft.Twain.Web.Api2Controllers Namespace > VintasoftTwainApi2Controller Class : CloseTwainSession Method
The parameters, which are necessary for closing TWAIN session.
Closes the TWAIN session.
Syntax
'Declaration
 
<HttpPostAttribute()>
Public Function CloseTwainSession( _
   ByVal requestParams As WebTwainRequestParamBase _
) As Vintasoft.Shared.Web.BaseResponseParams
'Usage
 
Dim instance As VintasoftTwainApi2Controller
Dim requestParams As WebTwainRequestParamBase
Dim value As Vintasoft.Shared.Web.BaseResponseParams
 
value = instance.CloseTwainSession(requestParams)
[HttpPost()]
public Vintasoft.Shared.Web.BaseResponseParams CloseTwainSession( 
   WebTwainRequestParamBase requestParams
)
[HttpPost()]
public: Vintasoft.Shared.Web.BaseResponseParams* CloseTwainSession( 
   WebTwainRequestParamBase* requestParams
) 
[HttpPost()]
public:
Vintasoft.Shared.Web.BaseResponseParams^ CloseTwainSession( 
   WebTwainRequestParamBase^ requestParams
) 

Parameters

requestParams
The parameters, which are necessary for closing TWAIN session.

Return Value

Base information about web request.
Remarks
This method will close the device if device is opened.
This method will close the device manager if device manager is opened.
Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

VintasoftTwainApi2Controller Class
VintasoftTwainApi2Controller Members
AllowableSessionInactivityTime Property