ImageGear for .NET
OpenSource Method
See Also  Send Feedback
ImageGear21.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : OpenSource Method




sourceName

Specifies the data source.

If sourceName is String.Empty and UseUI is set to true, then a call to this method will cause Data Source Manager to display the default source selection dialog.

If sourceName is String.Empty and UseUI is set to false, then the default Data Source will be opened.

If sourceName is a name of an existing Data Source, the specified Data Source will be opened.

Glossary Item Box

This method opens a connection to the TWAIN Data Source Manager and then loads the specified Data Source into main memory and causes its initialization.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

sourceName

Specifies the data source.

If sourceName is String.Empty and UseUI is set to true, then a call to this method will cause Data Source Manager to display the default source selection dialog.

If sourceName is String.Empty and UseUI is set to false, then the default Data Source will be opened.

If sourceName is a name of an existing Data Source, the specified Data Source will be opened.

Remarks

When an application is finished with the Data Source, call CloseSource to close the session between them.

See Also

©2013. Accusoft Corporation. All Rights Reserved.