简体   繁体   中英

Adding a new List to a SharePoint 2007 Site Using C# Web Services

I'm working with a Sharepoint site, I'm accessing this site using Web Services,

var client = new SiteWebReference.Lists();
        System.Net.NetworkCredential passCredentials = new System.Net.NetworkCredential("username", "password", "domain");
        client.Credentials = passCredentials;

This allows me to pull out lists from the site, I'm now trying to also add a new list to the SharePoint site but can't figure out how.

The generated Lists object has an AddList method. Call it to add a list.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM