Leadtools.Twain Namespace > TwainSession Class : SetVersion Method |
public static void SetVersion( TwainVersion twainVersion )
'Declaration Public Shared Sub SetVersion( _ ByVal twainVersion As TwainVersion _ )
'Usage Dim twainVersion As TwainVersion TwainSession.SetVersion(twainVersion)
public static void SetVersion( TwainVersion twainVersion )
function Leadtools.Twain.TwainSession.SetVersion( twainVersion )
public: static void SetVersion( TwainVersion twainVersion )
Public Sub SetVersionExample(ByVal twainVersion As TwainVersion) Dim session As TwainSession = New TwainSession() Try TwainSession.SetVersion(twainVersion) session.Startup(Nothing, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None) Catch ex As Exception MessageBox.Show(ex.Message) End Try session.Shutdown() End Sub
public void SetVersionExample(TwainVersion twainVersion) { TwainSession session = new TwainSession(); try { TwainSession.SetVersion(twainVersion); session.Startup(null, "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