Leadtools TWAIN(Leadtools.Twainアセンブリ)

フレームを表示

QuerySupportedCapabilitiesメソッド






現在のセッションでサポートされるTWAIN能力の配列を取得します。
構文
public TwainCapabilityType[] QuerySupportedCapabilities()
'Declaration
 
Public Function QuerySupportedCapabilities() As TwainCapabilityType()
'Usage
 
Dim instance As TwainSession
Dim value() As TwainCapabilityType
 
value = instance.QuerySupportedCapabilities()

            

            
public:
array<TwainCapabilityType>^ QuerySupportedCapabilities(); 
サンプル
Copy Code  
Imports Leadtools
 Imports Leadtools.Twain

#If Not LEADTOOLS_V19_OR_LATER Then
      Public Sub QuerySupportedCapabilitiesExample(ByVal parent As IWin32Window)
#Else
      Public Sub QuerySupportedCapabilitiesExample(ByVal parent As IntPtr)
#End If ' #If LEADTOOLS_V19_OR_LATER Then
         Dim session As TwainSession = New TwainSession()
         session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.InitializeMultithreaded)

         Dim caps As TwainCapabilityType() = session.QuerySupportedCapabilities()

         If Not caps Is Nothing Then
            Dim i As Integer = 0
            Do While i < caps.Length
               Console.WriteLine(caps(i).ToString())
               i += 1
            Loop
         End If

         session.Shutdown()
      End Sub
using Leadtools;
 using Leadtools.Twain;

#if !LEADTOOLS_V19_OR_LATER
      public void QuerySupportedCapabilitiesExample(IWin32Window parent)
#else
      public void QuerySupportedCapabilitiesExample(IntPtr parent)
#endif // #if !LEADTOOLS_V19_OR_LATER
      {
         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();
      }
必要条件

ターゲットプラットホーム

参照

参照

TwainSessionクラス
TwainSessionメンバ
QuerySupportedCapabilitiesメソッド
GetCapabilityメソッド
SetCapabilityメソッド
QueryCapabilityメソッド