public TwainSourceInformation[] QuerySourceInformation()
public:
array<TwainSourceInformation>^ QuerySourceInformation();
def QuerySourceInformation(self):
For more information, refer to Managing the TWAIN Source.
using Leadtools;
using Leadtools.Twain;
public void QuerySourceInformationExample(IntPtr parent)
{
string buffer;
TwainSession session = new TwainSession();
session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None);
TwainSourceInformation[] srcInfo = session.QuerySourceInformation();
for (int i = 0; i < srcInfo.Length; i++)
{
buffer = String.Format("Source Name = {0}\nProduct Family Name = {1}\nManufacturer Name = {2}\nTwain source supported version = {3}\n",
srcInfo[i].Name, srcInfo[i].ProductFamily, srcInfo[i].Manufacturer, srcInfo[i].TwainSourceVersion);
MessageBox.Show(buffer);
}
session.Shutdown();
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document