VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain.Web.WcfServices Namespace / IVintasoftTwainWcfService Interface / RefreshTwainSession Method
The parameters, which are necessary for refreshing TWAIN session.




In This Topic
    RefreshTwainSession Method (IVintasoftTwainWcfService)
    In This Topic
    Refreshes the TWAIN session, i.e. marks TWAIN session as active session.
    Syntax
    'Declaration
     
    <WebInvokeAttribute(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=True, 
       IsRequestFormatSetExplicitly=True, 
       IsResponseFormatSetExplicitly=True)>
    <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(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [OperationContract(Name="RefreshTwainSession", Action="RefreshTwainSession")]
    Vintasoft.Shared.Web.BaseResponseParams RefreshTwainSession( 
       WebTwainRequestParamBase requestParams
    )
    [WebInvoke(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [OperationContract(Name="RefreshTwainSession", Action="RefreshTwainSession")]
    Vintasoft.Shared.Web.BaseResponseParams* RefreshTwainSession( 
       WebTwainRequestParamBase* requestParams
    ) 
    [WebInvoke(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [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