Leadtools.Twain Namespace > TwainSession Class : SelectedSourceName Method |
public string SelectedSourceName()
'Declaration Public Function SelectedSourceName() As String
'Usage Dim instance As TwainSession Dim value As String value = instance.SelectedSourceName()
public string SelectedSourceName()
function Leadtools.Twain.TwainSession.SelectedSourceName()
public: String^ SelectedSourceName();
Public Sub SelectedSourceNameExample(ByVal parent As IWin32Window) 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
public void SelectedSourceNameExample(IWin32Window 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(); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2