GetCapability Method

Summary

Gets the TwainCapability value.

Syntax
C#
VB
C++
[OperationContractAttribute(Name="GetCapability", 
   Action="GetCapability", 
   AsyncPattern=false, 
   IsOneWay=false, 
   IsInitiating=true, 
   IsTerminating=false)] 
[WebInvokeAttribute(BodyStyle=2, 
   Method="POST", 
   RequestFormat=1, 
   ResponseFormat=1)] 
public Stream GetCapability( 
   string id, 
   TwainCapabilityType capabilityType, 
   TwainGetCapabilityMode mode, 
   object userData 
) 
<OperationContractAttribute(Name:="GetCapability", 
   Action:="GetCapability", 
   AsyncPattern:=false, 
   IsOneWay:=false, 
   IsInitiating:=true, 
   IsTerminating:=false), 
   WebInvokeAttribute(BodyStyle:=2, 
   Method:="POST", 
   RequestFormat:=1, 
   ResponseFormat:=1)> 
 Public Function GetCapability( 
   ByVal id As String, 
   ByVal capabilityType As TwainCapabilityType, 
   ByVal mode As TwainGetCapabilityMode, 
   ByVal userData As Object 
) As Stream 
public:  
   [OperationContractAttribute(Name=L"GetCapability", 
      Action=L"GetCapability", 
      AsyncPattern=false, 
      IsOneWay=false, 
      IsInitiating=true, 
      IsTerminating=false)] 
   [WebInvokeAttribute(BodyStyle=2, 
      Method=L"POST", 
      RequestFormat=1, 
      ResponseFormat=1)] 
   Stream^ GetCapability( 
      String^ id, 
      TwainCapabilityType^ capabilityType, 
      TwainGetCapabilityMode^ mode, 
      Object^ userData 
   ) 

Parameters

id
The scanning session Id.

capabilityType
The capability to get.

mode
The capability values to get.

userData
The user data.

Return Value

A TwainCapability that represents the specified capability value(s).

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