Error processing SSI file
Leadtools TWAIN (Leadtools.Twain assembly)

Show in webframe

SelectedSourceName Method






Gets the name of the selected TWAIN source. This name is provided by the manufacturer.
Syntax
public string SelectedSourceName()
'Declaration
 
Public Function SelectedSourceName() As String
'Usage
 
Dim instance As TwainSession
Dim value As String
 
value = instance.SelectedSourceName()
public:
String^ SelectedSourceName(); 
Remarks
For more information, refer to Managing the TWAIN Source.
Example
Copy Code  
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

See Also

Reference

TwainSession Class
TwainSession Members
SelectedSourceTwainVersion Method

Error processing SSI file