SetCapabilityValue Method

Summary

Sets the value of the specified capability.

Syntax
C#
VB
C++
[WebInvokeAttribute(BodyStyle=2, 
   Method="POST", 
   RequestFormat=1, 
   ResponseFormat=1)] 
[OperationContractAttribute(Name="SetCapabilityValue", 
   Action="SetCapabilityValue", 
   AsyncPattern=false, 
   IsOneWay=false, 
   IsInitiating=true, 
   IsTerminating=false)] 
public void SetCapabilityValue( 
   string id, 
   TwainCapabilityType capabilityType, 
   TwainItemType itemType, 
   string value, 
   object userData 
) 
<OperationContractAttribute(Name="SetCapabilityValue", Action="SetCapabilityValue")> 
<WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,  
   IsBodyStyleSetExplicitly=True,  
   IsRequestFormatSetExplicitly=True,  
   IsResponseFormatSetExplicitly=True,  
   Method="POST",  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json)> 
Sub SetCapabilityValue( _ 
   ByVal id As String, _ 
   ByVal capabilityType As TwainCapabilityType, _ 
   ByVal itemType As TwainItemType, _ 
   ByVal value As String, _ 
   ByVal userData As Object _ 
)  
[OperationContractAttribute(Name="SetCapabilityValue", Action="SetCapabilityValue")] 
[WebInvokeAttribute(BodyStyle=WebMessageBodyStyle.WrappedRequest,  
   IsBodyStyleSetExplicitly=true,  
   IsRequestFormatSetExplicitly=true,  
   IsResponseFormatSetExplicitly=true,  
   Method="POST",  
   RequestFormat=WebMessageFormat.Json,  
   ResponseFormat=WebMessageFormat.Json)] 
void SetCapabilityValue(  
   String^ id, 
   TwainCapabilityType capabilityType, 
   TwainItemType itemType, 
   String^ value, 
   Object^ userData 
)  

Parameters

id
The scanning session Id.

capabilityType
The capability values to set.

itemType
The type of data contained in the TwainOneValueCapability object.

value
The capability value

userData
The user data.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Services.Twain Assembly