VintaSoft Twain .NET SDK v10.2
SetDeviceCapability Method (IVintasoftTwainWcfService)




Vintasoft.Twain.Web.WcfServices Namespace > IVintasoftTwainWcfService Interface : SetDeviceCapability Method
The parameters, which are necessary for setting TWAIN device capability.
Sets the TWAIN device capability.
Syntax
'Declaration
 
<WebInvokeAttribute(IsBodyStyleSetExplicitly=True, 
   IsRequestFormatSetExplicitly=True, 
   IsResponseFormatSetExplicitly=True, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)>
<OperationContractAttribute(Name="SetDeviceCapability", Action="SetDeviceCapability")>
Function SetDeviceCapability( _
   ByVal requestParams As SetDeviceCapabilityRequestParams _
) As GetDeviceCapabilityResponseParams
'Usage
 
Dim instance As IVintasoftTwainWcfService
Dim requestParams As SetDeviceCapabilityRequestParams
Dim value As GetDeviceCapabilityResponseParams
 
value = instance.SetDeviceCapability(requestParams)
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
[OperationContract(Name="SetDeviceCapability", Action="SetDeviceCapability")]
GetDeviceCapabilityResponseParams SetDeviceCapability( 
   SetDeviceCapabilityRequestParams requestParams
)
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
[OperationContract(Name="SetDeviceCapability", Action="SetDeviceCapability")]
GetDeviceCapabilityResponseParams* SetDeviceCapability( 
   SetDeviceCapabilityRequestParams* requestParams
) 
[WebInvoke(IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true, 
   Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json)]
[OperationContract(Name="SetDeviceCapability", Action="SetDeviceCapability")]
GetDeviceCapabilityResponseParams^ SetDeviceCapability( 
   SetDeviceCapabilityRequestParams^ requestParams
) 

Parameters

requestParams
The parameters, which are necessary for setting 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

Reference

IVintasoftTwainWcfService Interface
IVintasoftTwainWcfService Members