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




In This Topic
    GetDeviceCapability Method (IVintasoftTwainWcfService)
    In This Topic
    Returns information about TWAIN device capability.
    Syntax
    'Declaration
     
    <WebInvokeAttribute(IsBodyStyleSetExplicitly=True, 
       IsRequestFormatSetExplicitly=True, 
       IsResponseFormatSetExplicitly=True, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)>
    <OperationContractAttribute(Name="GetDeviceCapability", Action="GetDeviceCapability")>
    Function GetDeviceCapability( _
       ByVal requestParams As GetDeviceCapabilityRequestParams _
    ) As GetDeviceCapabilityResponseParams
    'Usage
     
    Dim instance As IVintasoftTwainWcfService
    Dim requestParams As GetDeviceCapabilityRequestParams
    Dim value As GetDeviceCapabilityResponseParams
     
    value = instance.GetDeviceCapability(requestParams)
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    [OperationContract(Name="GetDeviceCapability", Action="GetDeviceCapability")]
    GetDeviceCapabilityResponseParams GetDeviceCapability( 
       GetDeviceCapabilityRequestParams requestParams
    )
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    [OperationContract(Name="GetDeviceCapability", Action="GetDeviceCapability")]
    GetDeviceCapabilityResponseParams* GetDeviceCapability( 
       GetDeviceCapabilityRequestParams* requestParams
    ) 
    [WebInvoke(IsBodyStyleSetExplicitly=true, 
       IsRequestFormatSetExplicitly=true, 
       IsResponseFormatSetExplicitly=true, 
       Method="POST", 
       RequestFormat=WebMessageFormat.Json, 
       ResponseFormat=WebMessageFormat.Json)]
    [OperationContract(Name="GetDeviceCapability", Action="GetDeviceCapability")]
    GetDeviceCapabilityResponseParams^ GetDeviceCapability( 
       GetDeviceCapabilityRequestParams^ requestParams
    ) 

    Parameters

    requestParams
    The parameters, which are necessary for getting information about TWAIN device capability.

    Return Value

    Information about value of TWAIN device capability.
    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