c# sharepoint client object model 创建文档库
2021-03-03 21:27
标签:template user etc share mode sha stc mat lines ClientTools tools = new ClientTools(); Web web = clientContext.Site.OpenWeb("WebUrl"); // Create the library c# sharepoint client object model 创建文档库 标签:template user etc share mode sha stc mat lines 原文地址:https://www.cnblogs.com/selenazhou/p/12964592.html
ClientContext clientContext= tools.GetContext(OnlineSiteUrl, User, Pass, true); //false 本地 true ONline
clientContext.Load(web);
clientContext.ExecuteQuery();
clientContext.Dispose();
ListCreationInformation creationInfo = new ListCreationInformation();
creationInfo.Title = "LibraryName";
creationInfo.Description = "LibraryDescription";
creationInfo.TemplateType = 101;
//creationInfo.TemplateType = (Int32)ListTemplateType.DocumentLibrary;
web.Lists.Add(creationInfo);
clientContext.ExecuteQuery();
文章标题:c# sharepoint client object model 创建文档库
文章链接:http://soscw.com/index.php/essay/59692.html