TwainSourceInformation结构

总结
提供TWAIN数据源的相关信息。
语法
c#
VB
c++
[DataContractAttribute ()]公共结构体TwainSourceInformation
< DataContractAttribute () >公共结构TwainSourceInformation继承了系统。ValueType
[DataContractAttribute ()]公共价值TwainSourceInformation:公共系统。ValueType
例子
c#
VB
使用Leadtools;使用Leadtools.Twain;公共无效TwainSourceInformationExample (IntPtr父)字符串缓冲区;TwainSession会话=TwainSession ();会话。启动(父,“制造商”“productFamily”“版本”“应用程序”, TwainStartupFlags.None);TwainSourceInformation[] srcInfo = session.QuerySourceInformation();intI = 0;i < srcInfo.Length;我+ +)buffer =字符串。格式("源名称= {0}\nProduct Family Name = {1}\nManufacturer Name = {2}\nTwain源支持版本= {3}\n"srcInfo[我]。名字,srcInfo[我]。ProductFamily, srcInfo[我]。制造商,srcInfo[我]。吐温SourceVersion);MessageBox.Show(缓冲);session.Shutdown ();
进口Leadtools进口Leadtools。吐温公共TwainSourceInformationExample (按值传递作为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领先技术公司版权所有