确定哪些的SharePoint版本已安装? [英] Determine which edition of SharePoint is Installed?
问题描述
什么是最可靠的方法来确定已安装的SharePoint版本。无论是WSS或MOSS。如果MOSS,无论是标准或企业。
What is the most reliable way to determine which version of SharePoint is installed. Whether it is WSS or MOSS. If MOSS, whether it is standard or enterprise.
我想以编程方式检测已安装的确切的SharePoint版本。
I want to programmatically detect the exact SharePoint version installed..
PS:我已经发布<一个href="http://sharepoint.stackexchange.com/questions/1395/determine-which-edition-of-sharepoint-is-installed">this问题在SharePoint.SE 也没有找到令人信服的答案。
PS: I already have posted this question at SharePoint.SE but could not find a convincing answer.
推荐答案
您可以尝试使用 SPFarm.Local.BuildVersion
或 SPWebService.ContentService .Farm.BuildVersion
(此<一个href="http://stackoverflow.com/questions/281718/howto-get-sharepoint-version-using-object-model">$p$pvious问题),并构建基于这样的查询表:<一href="http://www.sharepointdesignerstepbystep.com/Blog/Articles/How%20To%20find%20the%20SharePoint%20version.aspx"相对=nofollow>如何找到的SharePoint您所运行的水平?
You could try to use SPFarm.Local.BuildVersion
or SPWebService.ContentService.Farm.BuildVersion
(from this previous question) and to build a lookup table based on this: How to find the level of SharePoint you are running?
另一种选择是直接从 ConfigDB
数据库中读取,对版本
表;你可以找到<一href="http://msmvps.com/blogs/laflour/archive/2009/02/22/sharepoint-tip-16-do-you-know-how-to-get-the-sharepoint-version-programmatically.aspx"相对=nofollow>更多信息这里。
Another option is to read directly from ConfigDB
database, on Versions
table; you can find more information here.
这篇关于确定哪些的SharePoint版本已安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!