VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain.Web.WcfServices Namespace / IVintasoftTwainWcfService Interface / OpenDevice Method
The parameters, which are necessary for opening TWAIN device.




In This Topic
    OpenDevice Method (IVintasoftTwainWcfService)
    In This Topic
    Opens the TWAIN device.
    Syntax
    'Declaration
     
    <OperationContractAttribute(Name="OpenDevice", Action="OpenDevice")>
    <WebInvokeAttribute(IsBodyStyleSetExplicitly=True, 
       IsRequestFormatSetExplicitly=True, 
       IsResponseFormatSetExplicitly=True, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)>
    Function OpenDevice( _
       ByVal requestParams As OpenDeviceRequestParam _
    ) As Vintasoft.Shared.Web.BaseResponseParams
    'Usage
     
    Dim instance As IVintasoftTwainWcfService
    Dim requestParams As OpenDeviceRequestParam
    Dim value As Vintasoft.Shared.Web.BaseResponseParams
     
    value = instance.OpenDevice(requestParams)
    [OperationContract(Name="OpenDevice", Action="OpenDevice")]
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    Vintasoft.Shared.Web.BaseResponseParams OpenDevice( 
       OpenDeviceRequestParam requestParams
    )
    [OperationContract(Name="OpenDevice", Action="OpenDevice")]
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    Vintasoft.Shared.Web.BaseResponseParams* OpenDevice( 
       OpenDeviceRequestParam* requestParams
    ) 
    [OperationContract(Name="OpenDevice", Action="OpenDevice")]
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    Vintasoft.Shared.Web.BaseResponseParams^ OpenDevice( 
       OpenDeviceRequestParam^ requestParams
    ) 

    Parameters

    requestParams
    The parameters, which are necessary for opening TWAIN device.

    Return Value

    Base information about web request.
    Exceptions
    ExceptionDescription
    Thrown if TWAIN session is wrong OR device manager is not opened.
    Thrown if device is not found.
    Requirements

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

    See Also