English 中文(简体)
分享点:如何利用网络服务在一份清单中建立一个文件夹
原标题:SharePoint: How to create a folder in a list using web services
  • 时间:2009-11-04 06:58:28
  •  标签:
问题回答

著作:

XmlDocument doc = new XmlDocument();
            XmlElement batch = doc.CreateElement("Batch");
            string item = "<Method ID="1" Cmd="New">" +
                "<Field Name="ID">New</Field>" +
                "<Field Name="FSObjType">1</Field>" +
                "<Field Name="BaseName">" + folderName + "</Field></Method>";

            batch.SetAttribute("ListVersion", "1");
            batch.InnerXml = item;

            wsLists.UpdateListItems(listAddress, batch); 




相关问题
热门标签