Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.9.21
|
Leadtools.Twain Namespace > TwainSession Class : Startup Method |
public void Startup( IntPtr owner, string manufacturer, string productFamily, string version, string application, TwainStartupFlags flags )
'Declaration
Public Sub Startup( _ ByVal owner As IntPtr, _ 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 IntPtr 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( IntPtr owner, String^ manufacturer, String^ productFamily, String^ version, String^ application, TwainStartupFlags flags )
Imports Leadtools Imports Leadtools.Twain Public Sub StartupExample(ByVal parent As IntPtr) 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
using Leadtools; using Leadtools.Twain; public void StartupExample(IntPtr 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(); }