←Select platform

SelectedSourceName Method

Summary
Gets the name of the selected TWAIN source. This name is provided by the manufacturer.

Syntax
C#
C++/CLI
Python
public string SelectedSourceName() 
public: 
String^ SelectedSourceName();  
def SelectedSourceName(self): 
Remarks

For more information, refer to Managing the TWAIN Source.

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void SelectedSourceNameExample(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(session.SelectedSourceName()); 
   session.Shutdown(); 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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