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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Services.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.