Creating lists in SharePoint using Managed Client Object Model is rather easy task. Here's how to create a list with SharePoint's custom list template:
ListCreationInformation lci; List list; lci = new ListCreationInformation(); lci.Title = title; lci.Description = description; lci.TemplateType = (int)ListTemplateType.GenericList; list = clientContext.Web.Lists.Add(lci); clientContext.ExecuteQuery();
But what happens if I don't what to use any of the default
ListTemplateType templates? What if I have created my own list template and I want to use it in the code to create lists based on it? Please help, thanks.