using System; using Microsoft.SharePoint.Client; namespace Microsoft.SDK.SharePointServices.Samples { class CreateList { static void Main() { string siteUrl = "http://MyServer/sites/MySiteCollection"; ClientContext clientContext = new ClientContext(siteUrl); Web oWebsite = clientContext.Web; ListCreationInformation listCreationInfo = new ListCreationInformation(); listCreationInfo.Title = "My Announcements List"; listCreationInfo.TemplateType = (int)ListTemplateType.Announcements; List oList = oWebsite.Lists.Add(listCreationInfo); clientContext.ExecuteQuery(); } } }
Create Sharepoint List Using Cleint Object model CSOM
About GowthamI'm a software developer who enjoys building solutions, exploring new tech, and helping others grow through clean and simple content. This blog shares real-world coding tips, Power Platform how-tos, AI experiments, and lessons learned from hands-on experience.
Sharepoint List
Subscribe to:
Post Comments (Atom)
No comments
Post a Comment