首页 > Windows开发 > 详细

C#在SharePoint文档库下动态新增文件夹

时间:2019-03-08 16:39:14      阅读:267      评论:0      收藏:0      [点我收藏+]
        /// <summary>
        /// 在创建SP文库库下动态新增文件夹
        /// </summary>
        /// <param name="spList"></param>
        /// <param name="_folderName"></param>
        private void CreateFileDir(List spList,string _folderName)
        {
            ListItemCreationInformation information;
            SP.ListItem folder;
            information = new ListItemCreationInformation()
            {
                LeafName = _folderName,
                UnderlyingObjectType = SP.FileSystemObjectType.Folder
            };
            folder = spList.AddItem(information);
            folder.Update();
            context.ExecuteQuery();
        }

 

C#在SharePoint文档库下动态新增文件夹

原文:https://www.cnblogs.com/sayshap/p/10496644.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!