←Select platform

SelectedSourceName Method

Summary

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

Syntax

C#
VB
C++
public string SelectedSourceName()
Public Function SelectedSourceName() As String
public: 
String^ SelectedSourceName(); 

Remarks

For more information, refer to Managing the TWAIN Source.

Example

C#
VB
Imports Leadtools 
Imports Leadtools.Twain 
 
Public Sub SelectedSourceNameExample(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(session.SelectedSourceName()) 
   session.Shutdown() 
End Sub 
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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Twain Assembly
Click or drag to resize