VintaSoft Twain .NET SDK v10.3
Vintasoft.Twain.Web.WcfServices Namespace / IVintasoftTwainWcfService Interface / CreateTwainSession Method




In This Topic
    CreateTwainSession Method (IVintasoftTwainWcfService)
    In This Topic
    Creates the TWAIN session.
    Syntax
    'Declaration
     
    <WebInvokeAttribute(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=True, 
       IsRequestFormatSetExplicitly=True, 
       IsResponseFormatSetExplicitly=True)>
    <OperationContractAttribute(Name="CreateTwainSession", Action="CreateTwainSession")>
    Function CreateTwainSession( _
       ByVal requestParams As CreateTwainSessionRequestParams _
    ) As WebTwainResponseParamBase
    'Usage
     
    Dim instance As IVintasoftTwainWcfService
    Dim requestParams As CreateTwainSessionRequestParams
    Dim value As WebTwainResponseParamBase
     
    value = instance.CreateTwainSession(requestParams)
    [WebInvoke(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [OperationContract(Name="CreateTwainSession", Action="CreateTwainSession")]
    WebTwainResponseParamBase CreateTwainSession( 
       CreateTwainSessionRequestParams requestParams
    )
    [WebInvoke(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [OperationContract(Name="CreateTwainSession", Action="CreateTwainSession")]
    WebTwainResponseParamBase* CreateTwainSession( 
       CreateTwainSessionRequestParams* requestParams
    ) 
    [WebInvoke(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [OperationContract(Name="CreateTwainSession", Action="CreateTwainSession")]
    WebTwainResponseParamBase^ CreateTwainSession( 
       CreateTwainSessionRequestParams^ requestParams
    ) 

    Parameters

    requestParams

    Return Value

    Identifier of new TWAIN session.
    Requirements

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

    See Also