QuerySourceInformation方法

总结
获取有关可用TWAIN数据源的信息。
语法
c#
VB
c++
公共TwainSourceInformation[] QuerySourceInformation ()
公共函数QuerySourceInformation ()作为TwainSourceInformation ()
公共数组< TwainSourceInformation > ^QuerySourceInformation ();
讲话

有关更多信息,请参阅管理TWAIN源

例子
c#
VB
使用Leadtools;使用Leadtools.Twain;公共无效QuerySourceInformationExample (IntPtr父)字符串缓冲区;TwainSession session =TwainSession ();会话。启动(父,“制造商”“productFamily”“版本”“应用程序”, TwainStartupFlags.None);TwainSourceInformation[] srcInfo = session.QuerySourceInformation();intI = 0;i < srcInfo.Length;我+ +)buffer =字符串。格式("Source Name = {0}\n product Family Name = {1}\nManufacturer Name = {2}\nTwain Source supported version = {3}\n"srcInfo[我]。名字,srcInfo[我]。ProductFamily, srcInfo[我]。制造商,srcInfo[我]。吐温SourceVersion);MessageBox.Show(缓冲);session.Shutdown ();
进口Leadtools进口Leadtools。吐温公共QuerySourceInformationExample (按值传递作为IntPtr)昏暗的缓冲作为字符串昏暗的会话作为TwainSession =TwainSession ()会话。启动(父,“制造商”“productFamily”“版本”“应用程序”TwainStartupFlags.None)昏暗的srcInfo作为TwainSourceInformation() = session.QuerySourceInformation()昏暗的作为整数= 0i < srcInfo。长度缓冲=字符串.Format ("源名称= {0}"&常数。vbLf &"产品名称= {1}"&常数。vbLf &"厂家名称= {2}"&常数。vbLf &"Twain源码支持的版本= {3}"常量。vbLf srcInfo(我)。名字,srcInfo(我)。ProductFamily srcInfo(我)。制造商,srcInfo(我).TwainSourceVersion)MessageBox.Show(缓冲)I += 1循环session.Shutdown ()结束
需求

目标平台

Leadtools。吐温作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权公告
©1991 - 2021领德科技有限公司版权所有。