c# sharepoint client object model 客户端如何创建中英文站点
ClientContext ClientValidate = tools.GetContext(OnlineSiteUrl, User, Pass, true);
Web oWebSite = ClientValidate.Web;
ClientValidate.Load(oWebSite);
ClientValidate.Load(oWebSite.Webs);
ClientValidate.ExecuteQuery();
//创建一个siteweb的站点
WebCreationInformation creation = new WebCreationInformation();
creation.Url = "siteweb";
creation.Title = "siteweb";
creation.Description = "siteweb";
creation.Language = 1033; // 选择英语作为默认语言
//creation.Language = 2052; // 选择中文作为默认语言
Web newWeb = oWebSite.Webs.Add(creation);
newWeb.IsMultilingual = false; //不勾选备用语言
//newWeb.AddSupportedUILanguage(1033); // English
//newWeb.AddSupportedUILanguage(1031); // German
//newWeb.AddSupportedUILanguage(1036); // French
//newWeb.AddSupportedUILanguage(1046); // Portugese (Brazil)
//newWeb.AddSupportedUILanguage(1049); // Russian
////newWeb.AddSupportedUILanguage(2052); // Chinese (Simplified)
//newWeb.AddSupportedUILanguage(3082); // Spanish
newWeb.Update();
ClientValidate.Load(newWeb);
ClientValidate.ExecuteQuery();
效果图如下: