zoukankan      html  css  js  c++  java
  • c# sharepoint client object model 客户端如何创建中英文站点

    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();

    效果图如下:

  • 相关阅读:
    Spring-Cloud-GateWay
    Spring-Clould-Alibaba-sentinel控制台
    Oacle学习-01Oracle的安装
    Spring-Clould-Alibaba-集成Ribbon&Feign
    Spring-Clould-Alibaba-nginx-nacos集群搭建
    Springboot整合Security
    Springboot实现QQ邮箱的发送
    java实现qq邮箱的发送
    Springboot集成Swagger2
    Hadoop集群搭建
  • 原文地址:https://www.cnblogs.com/selenazhou/p/11593629.html
Copyright © 2011-2022 走看看