如何使用 SharePoint Web 服务确定 SharePoint 版本? [英] How to determine SharePoint version using SharePoint web services?

查看:45
本文介绍了如何使用 SharePoint Web 服务确定 SharePoint 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种方法来根据提供的 URL 确定 SharePoint 的版本.此外,我需要通过 SharePoint Web 服务或任何其他涉及 SharePoint 对象模型的方法来实现它(因为代码不在服务器上执行).有人可以帮忙吗?谢谢.

I need a way to determine the version of SharePoint based on the URL provided. Also, I need to have it implemented through SharePoint web services or any other method that does not involve SharePoint's object model (because the code is not executed on the server). Could anyone help please? Thanks.

推荐答案

要实现此目的,您可以对 SharePoint URL 执行 Web 请求,然后捕获主机标头.

To achieve this you can execute a web request to your SharePoint URL and then capture a host header.

有一个名为 MicrosoftSharePointTeamServices 的主机标头,可为您提供 SharePoint 版本.

There is a host header called MicrosoftSharePointTeamServices that will provide you with the SharePoint version.

见下文:

using System;
using System.Net;

class C {
  static void Main(string[] args) {
    var uri = new Uri(args[0]);
    var wc = new WebClient();
    wc.UseDefaultCredentials = true;
    wc.DownloadString(uri);
    var sharePointVersion = wc.ResponseHeaders["MicrosoftSharePointTeamServices"];
    Console.WriteLine(sharePointVersion);
  }
}

然后将您的 SharePointVersion 与以下列表进行比较:

Then compare your SharePointVersion with the following list:

12.0.0.6535 MOSS 20071 或 WSS 3.0 SP2 + 12 月 9 日累积更新(KB960010 + KB960011)

12.0.0.6535 MOSS 20071 or WSS 3.0 SP2 + December 09 cumulative Update (KB960010 + KB960011)

12.0.0.6524 MOSS 20071 或 WSS 3.0 SP2 + 12 月 15 日更新 (KB977027+ KB977026)

12.0.0.6524 MOSS 20071 or WSS 3.0 SP2 + 15th December Update (KB977027 + KB977026)

12.0.0.6520 MOSS 20071 或 WSS 3.0 SP2 + 10 月 9 日累积更新(KB974989 + KB974988)

12.0.0.6520 MOSS 20071 or WSS 3.0 SP2 + October 09 cumulative Update (KB974989 + KB974988)

12.0.0.6514 MOSS 20071 或 WSS 3.0 SP2 + 8 月 9 日累积更新(KB973400 + KB973399)

12.0.0.6514 MOSS 20071 or WSS 3.0 SP2 + August 09 cumulative Update (KB973400 + KB973399)

12.0.0.6510 MOSS 20071 或 WSS 3.0 SP2 + 6 月 9 日累积更新(KB971538 + KB971537)

12.0.0.6510 MOSS 20071 or WSS 3.0 SP2 + June 09 cumulative Update (KB971538 + KB971537)

12.0.0.6504 MOSS 20071 或 WSS 3.0 SP2 + 4 月 9 日累积更新(KB968850 + KB968851)

12.0.0.6504 MOSS 20071 or WSS 3.0 SP2 + April 09 cumulative Update (KB968850 + KB968851)

12.0.0.6421 MOSS 20071 或 WSS 3.0 SP2 (KB953338 + KB953334)[09 年 8 月 1 日更新:SP2 下载现在包含修补程序 (KB971620)纠正激活问题有关 Microsoft SharePoint 团队博客的更多信息]

12.0.0.6421 MOSS 20071 or WSS 3.0 SP2 (KB953338 + KB953334) [Updated 1st Aug 09: SP2 download now includes the hotfix (KB971620) that corrects the activation issue more information on the Microsoft SharePoint team blog]

12.0.0.6341 MOSS 20071 或 WSS 3.0 2 月 9 日累积更新(KB961755 + KB961756)

12.0.0.6341 MOSS 20071 or WSS 3.0 February 09 cumulative Update (KB961755 + KB961756)

12.0.0.6335 MOSS 20071 或 WSS 3.0 12 月 8 日累积更新(KB960010 + KB960011)

12.0.0.6335 MOSS 20071 or WSS 3.0 December 08 cumulative Update (KB960010 + KB960011)

12.0.0.6331 MOSS 20071 或 WSS 3.0 10 月 8 日累积更新 (KB957691+ KB957693、KB958567 和 KB958569)

12.0.0.6331 MOSS 20071 or WSS 3.0 October 08 cumulative Update (KB957691 + KB957693,KB958567 and KB958569)

12.0.0.6327 MOSS 20071 或 WSS 3.0 8 月 8 日累积更新 (KB956056&KB956057)

12.0.0.6327 MOSS 20071 or WSS 3.0 August 08 cumulative update (KB956056 & KB956057)

12.0.0.6318 MOSS 20071 或 WSS 3.0 基础架构更新 (KB951695 &KB951297)

12.0.0.6318 MOSS 20071 or WSS 3.0 Infrastructure Update (KB951695 & KB951297)

12.0.0.6303 MOSS 20071 或 WSS 3.0 SP1 后修补程序 (KB948945)

12.0.0.6303 MOSS 20071 or WSS 3.0 post-SP1 hotfix (KB948945)

12.0.0.6301 MOSS 20071 或 WSS 3.0 SP1 后修补程序 (KB941274)

12.0.0.6301 MOSS 20071 or WSS 3.0 post-SP1 hotfix (KB941274)

12.0.0.6300 MOSS 20071 或 WSS 3.0 SP1 后修补程序 (KB941422)

12.0.0.6300 MOSS 20071 or WSS 3.0 post-SP1 hotfix (KB941422)

12.0.0.6219 MOSS 20071 或 WSS 3.0 SP1

12.0.0.6219 MOSS 20071 or WSS 3.0 SP1

12.0.0.6039 MOSS 20071 或 WSS 3.0 10 月公开更新

12.0.0.6039 MOSS 20071 or WSS 3.0 October public update

12.0.0.6036 MOSS 20071 或 WSS 3.0 07 年 8 月 24 日修补程序包

12.0.0.6036 MOSS 20071 or WSS 3.0 August 24, 07 hotfix package

12.0.0.4518 MOSS 20071 或 WSS 3.0 RTM

12.0.0.4518 MOSS 20071 or WSS 3.0 RTM

12.0.0.4407 MOSS 20071 或 WSS 3.0 Beta 2 TR

12.0.0.4407 MOSS 20071 or WSS 3.0 Beta 2 TR

12.0.0.4017 MOSS 20071 或 WSS 3.0 Beta 2

12.0.0.4017 MOSS 20071 or WSS 3.0 Beta 2

12.0.0.3111 Office 12(PDC 映像 - 测试版)- 此版本的 Office中没有支持链接添加/删除程序对话框.

12.0.0.3111 Office 12 (PDC image - pre-beta) - This version of Office does not have a support link in the Add/Remove programs dialog box.

这篇关于如何使用 SharePoint Web 服务确定 SharePoint 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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