VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain.Web.WcfServices Namespace / IVintasoftTwainWcfService Interface / GetDeviceInfos Method
The parameters, which are necessary for getting information about available TWAIN devices.




In This Topic
    GetDeviceInfos Method (IVintasoftTwainWcfService)
    In This Topic
    Returns information about devices installed in the system.
    Syntax
    'Declaration
     
    <WebInvokeAttribute(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=True, 
       IsRequestFormatSetExplicitly=True, 
       IsResponseFormatSetExplicitly=True)>
    <OperationContractAttribute(Name="GetDeviceInfos", Action="GetDeviceInfos")>
    Function GetDeviceInfos( _
       ByVal requestParams As WebTwainRequestParamBase _
    ) As TwainDevicesInfoResponseParams
    'Usage
     
    Dim instance As IVintasoftTwainWcfService
    Dim requestParams As WebTwainRequestParamBase
    Dim value As TwainDevicesInfoResponseParams
     
    value = instance.GetDeviceInfos(requestParams)
    [WebInvoke(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [OperationContract(Name="GetDeviceInfos", Action="GetDeviceInfos")]
    TwainDevicesInfoResponseParams GetDeviceInfos( 
       WebTwainRequestParamBase requestParams
    )
    [WebInvoke(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [OperationContract(Name="GetDeviceInfos", Action="GetDeviceInfos")]
    TwainDevicesInfoResponseParams* GetDeviceInfos( 
       WebTwainRequestParamBase* requestParams
    ) 
    [WebInvoke(Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json, 
       IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true)]
    [OperationContract(Name="GetDeviceInfos", Action="GetDeviceInfos")]
    TwainDevicesInfoResponseParams^ GetDeviceInfos( 
       WebTwainRequestParamBase^ requestParams
    ) 

    Parameters

    requestParams
    The parameters, which are necessary for getting information about available TWAIN devices.

    Return Value

    Information about devices installed in the system.
    Exceptions
    ExceptionDescription
    Thrown if TWAIN session is wrong OR device manager is not opened.
    Requirements

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

    See Also