通过代码获取MOSS的版本

using (SPSite site = new SPSite("http://moss:8001/"))

 {

                SPFarm farm = site.WebApplication.Farm;

                Console.WriteLine(SPWebService.ContentService.Farm.BuildVersion.ToString());

 }

 Console.WriteLine("Press any key to continue…..");

 Console.ReadLine();

QRRP]IYIW)_GXT]][FA14O7

你可能感兴趣的:(OS)