←Select platform

GetCapability Method

Summary
Gets the TwainCapability value.

Syntax
C#
C++/CLI
Python
[WebInvokeAttribute(BodyStyle=2, 
   Method="POST", 
   RequestFormat=1, 
   ResponseFormat=1)] 
[OperationContractAttribute(Name="GetCapability", 
   Action="GetCapability", 
   AsyncPattern=false, 
   IsOneWay=false, 
   IsInitiating=true, 
   IsTerminating=false)] 
public Stream GetCapability( 
   string id, 
   TwainCapabilityType capabilityType, 
   TwainGetCapabilityMode mode, 
   object userData 
) 
public:  
   [WebInvokeAttribute(BodyStyle=2, 
      Method=L"POST", 
      RequestFormat=1, 
      ResponseFormat=1)] 
   [OperationContractAttribute(Name=L"GetCapability", 
      Action=L"GetCapability", 
      AsyncPattern=false, 
      IsOneWay=false, 
      IsInitiating=true, 
      IsTerminating=false)] 
   Stream^ GetCapability( 
      String^ id, 
      TwainCapabilityType^ capabilityType, 
      TwainGetCapabilityMode^ mode, 
      Object^ userData 
   ) 
def GetCapability(self,mode,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 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

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