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




Vintasoft.Twain.Web.WcfServices Namespace > IVintasoftTwainWcfService Interface : RefreshTwainSession Method
The parameters, which are necessary for refreshing TWAIN session.
Refreshes the TWAIN session, i.e. marks TWAIN session as active session.
Syntax
'Declaration
 
<WebInvokeAttribute(IsBodyStyleSetExplicitly=True, 
   IsRequestFormatSetExplicitly=True, 
   IsResponseFormatSetExplicitly=True, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)>
<OperationContractAttribute(Name="RefreshTwainSession", Action="RefreshTwainSession")>
Function RefreshTwainSession( _
   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.RefreshTwainSession(requestParams)
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
[OperationContract(Name="RefreshTwainSession", Action="RefreshTwainSession")]
Vintasoft.Shared.Web.BaseResponseParams RefreshTwainSession( 
   WebTwainRequestParamBase requestParams
)
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
[OperationContract(Name="RefreshTwainSession", Action="RefreshTwainSession")]
Vintasoft.Shared.Web.BaseResponseParams* RefreshTwainSession( 
   WebTwainRequestParamBase* requestParams
) 
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
[OperationContract(Name="RefreshTwainSession", Action="RefreshTwainSession")]
Vintasoft.Shared.Web.BaseResponseParams^ RefreshTwainSession( 
   WebTwainRequestParamBase^ requestParams
) 

Parameters

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

Return Value

Base information about web request.
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