SelectedSourceTwainVersion Method

Summary

Gets the TWAIN version of the selected TWAIN source.

Syntax
C#
VB
C++
public TwainVersion SelectedSourceTwainVersion() 
Public Function SelectedSourceTwainVersion() As TwainVersion 
public: 
TwainVersion SelectedSourceTwainVersion();  

Remarks

For more information, refer to Managing the TWAIN Source.

Example
C#
VB
using Leadtools; 
using Leadtools.Twain; 
 
public void SelectedSourceTwainVersionExample(IntPtr parent) 
{ 
   TwainSession session = new TwainSession(); 
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
 
   // Twain data source name is case-sensitive 
   session.SelectSource("TWAIN_32 Sample Source"); 
   MessageBox.Show(Enum.GetName(typeof(TwainVersion), session.SelectedSourceTwainVersion())); 
   session.Shutdown(); 
} 
Imports Leadtools 
Imports Leadtools.Twain 
 
Public Sub SelectedSourceTwainVersionExample(ByVal parent As IntPtr) 
   Dim session As TwainSession = New TwainSession() 
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None) 
 
   ' Twain data source name is case-sensitive 
   session.SelectSource("TWAIN_32 Sample Source") 
   MessageBox.Show([Enum].GetName(GetType(TwainVersion), session.SelectedSourceTwainVersion())) 
   session.Shutdown() 
End Sub 

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.Twain Assembly