c# sharepoint client object model 创建列表库
2021-03-03 21:28
标签:generic mod form lin ntc ref pen creation tool ClientTools tools = new ClientTools(); Web web = clientContext.Site.OpenWeb("WebUrl"); ListCreationInformation creationInfo = new ListCreationInformation(); c# sharepoint client object model 创建列表库 标签:generic mod form lin ntc ref pen creation tool 原文地址:https://www.cnblogs.com/selenazhou/p/12964565.html
ClientContext clientContext= tools.GetContext(OnlineSiteUrl, User, Pass, true); //false 本地 true ONline
clientContext.Load(web);
clientContext.ExecuteQuery();
clientContext.Dispose();
creationInfo.Title = "Title";
creationInfo.Description = "Description";
creationInfo.TemplateType = 100;
//creationInfo.TemplateType = (Int32)ListTemplateType.GenericList;
web.Lists.Add(creationInfo);
clientContext.ExecuteQuery();
文章标题:c# sharepoint client object model 创建列表库
文章链接:http://soscw.com/index.php/essay/59693.html