←Select platform

QuerySupportedCapabilities Method

Summary
Gets an array of TWAIN Capabilities supported in the current session.

Syntax
C#
C++/CLI
Python
public TwainCapabilityType[] QuerySupportedCapabilities() 
public: 
array<TwainCapabilityType>^ QuerySupportedCapabilities();  
def QuerySupportedCapabilities(self): 
Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void QuerySupportedCapabilitiesExample(IntPtr parent) 
{ 
   TwainSession session = new TwainSession(); 
 
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.InitializeMultithreaded); 
 
   TwainCapabilityType[] caps = session.QuerySupportedCapabilities(); 
 
   if (caps != null) 
   { 
      for (int i = 0; i < caps.Length; i++) 
         Console.WriteLine(caps[i].ToString()); 
   } 
 
   session.Shutdown(); 
} 
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.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.