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




In This Topic
    CreateTwainSession Method (IVintasoftTwainWcfService)
    In This Topic
    Creates the TWAIN session.
    Syntax
    'Declaration
     
    <OperationContractAttribute(Name="CreateTwainSession", Action="CreateTwainSession")>
    <WebInvokeAttribute(IsBodyStyleSetExplicitly=True, 
       IsRequestFormatSetExplicitly=True, 
       IsResponseFormatSetExplicitly=True, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)>
    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)
    [OperationContract(Name="CreateTwainSession", Action="CreateTwainSession")]
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    WebTwainResponseParamBase CreateTwainSession( 
       CreateTwainSessionRequestParams requestParams
    )
    [OperationContract(Name="CreateTwainSession", Action="CreateTwainSession")]
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    WebTwainResponseParamBase* CreateTwainSession( 
       CreateTwainSessionRequestParams* requestParams
    ) 
    [OperationContract(Name="CreateTwainSession", Action="CreateTwainSession")]
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    WebTwainResponseParamBase^ CreateTwainSession( 
       CreateTwainSessionRequestParams^ requestParams
    ) 

    Parameters

    requestParams

    Return Value

    Identifier of new TWAIN session.
    Requirements

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

    See Also