Leadtools.Twain Namespace > TwainSession Class : Startup Method |
public void Startup( IWin32Window owner, string manufacturer, string productFamily, string version, string application, TwainStartupFlags flags )
'Declaration Public Sub Startup( _ ByVal owner As IWin32Window, _ ByVal manufacturer As String, _ ByVal productFamily As String, _ ByVal version As String, _ ByVal application As String, _ ByVal flags As TwainStartupFlags _ )
'Usage Dim instance As TwainSession Dim owner As IWin32Window Dim manufacturer As String Dim productFamily As String Dim version As String Dim application As String Dim flags As TwainStartupFlags instance.Startup(owner, manufacturer, productFamily, version, application, flags)
public void Startup( IWin32Window owner, string manufacturer, string productFamily, string version, string application, TwainStartupFlags flags )
function Leadtools.Twain.TwainSession.Startup( owner , manufacturer , productFamily , version , application , flags )
public: void Startup( IWin32Window^ owner, String^ manufacturer, String^ productFamily, String^ version, String^ application, TwainStartupFlags flags )
Public Sub StartupExample(ByVal parent As IWin32Window) Dim session As TwainSession = New TwainSession() session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None) Try session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None) Catch ex As Exception MessageBox.Show(ex.Message) End Try session.Shutdown() End Sub
public void StartupExample(IWin32Window parent) { TwainSession session = new TwainSession(); session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); try { session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); } catch (Exception ex) { MessageBox.Show(ex.Message); } 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