C#.Net,获取OLEDB提供者版本 [英] C#.Net, Get the OLEDB provider version

查看:155
本文介绍了C#.Net,获取OLEDB提供者版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要识别已安装的OLEDB提供者版本。在阅读Excel文件之前。如何做到这一点?

I need to Identify the Installed OLEDB provider version. before reading an Excel file. How can I do that?

推荐答案

可以使用OleDbEnumerator.GetElements方法。 http://msdn.microsoft.com/en -us / library / system.data.oledb.oledbenumerator.getelements.aspx 来枚举驱动程序。你可以问这个链接的版本:
http://dotnetref.blogspot.com/2009/04/getting-version-of-oledb-provider.html

You can use the OleDbEnumerator.GetElements Method . http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbenumerator.getelements.aspx to enumarate the drivers. You ask the versions of them maybe this link helps: http://dotnetref.blogspot.com/2009/04/getting-version-of-oledb-provider.html

这篇关于C#.Net,获取OLEDB提供者版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆