gpt4 book ai didi

web-services - 如何使用 SharePoint Web 服务确定 SharePoint 版本?

转载 作者:行者123 更新时间:2023-12-03 18:27:56 26 4
gpt4 key购买 nike

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

最佳答案

为此,您可以对 SharePoint URL 执行 Web 请求,然后捕获主机 header 。

有一个名为 的主机头文件MicrosoftSharePointTeamServices 这将为您提供 SharePoint 版本。

见下文:

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 与以下列表进行比较:

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

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

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

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

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

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

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 or WSS 3.0 February 09 cumulative Update (KB961755 + KB961756)

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

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 or WSS 3.0 August 08 cumulative update (KB956056 & KB956057)

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

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

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

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

12.0.0.6219 MOSS 20071 or WSS 3.0 SP1

12.0.0.6039 MOSS 20071 or WSS 3.0 October public update

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

12.0.0.4518 MOSS 20071 or WSS 3.0 RTM

12.0.0.4407 MOSS 20071 or WSS 3.0 Beta 2 TR

12.0.0.4017 MOSS 20071 or WSS 3.0 Beta 2

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.

关于web-services - 如何使用 SharePoint Web 服务确定 SharePoint 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2309728/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com