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




Vintasoft.Twain.Web.WcfServices Namespace > IVintasoftTwainWcfService Interface : CloseTwainSession Method
The parameters, which are necessary for closing TWAIN session.
Closes the TWAIN session.
Syntax
'Declaration
 
<OperationContractAttribute(Name="CloseTwainSession", Action="CloseTwainSession")>
<WebInvokeAttribute(IsBodyStyleSetExplicitly=True, 
   IsRequestFormatSetExplicitly=True, 
   IsResponseFormatSetExplicitly=True, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)>
Function CloseTwainSession( _
   ByVal requestParams As WebTwainRequestParamBase _
) As Vintasoft.Shared.Web.BaseResponseParams
'Usage
 
Dim instance As IVintasoftTwainWcfService
Dim requestParams As WebTwainRequestParamBase
Dim value As Vintasoft.Shared.Web.BaseResponseParams
 
value = instance.CloseTwainSession(requestParams)
[OperationContract(Name="CloseTwainSession", Action="CloseTwainSession")]
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
Vintasoft.Shared.Web.BaseResponseParams CloseTwainSession( 
   WebTwainRequestParamBase requestParams
)
[OperationContract(Name="CloseTwainSession", Action="CloseTwainSession")]
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
Vintasoft.Shared.Web.BaseResponseParams* CloseTwainSession( 
   WebTwainRequestParamBase* requestParams
) 
[OperationContract(Name="CloseTwainSession", Action="CloseTwainSession")]
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
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

IVintasoftTwainWcfService Interface
IVintasoftTwainWcfService Members
AllowableSessionInactivityTime