I have created a custom list from another list in sharepoint, it is saved into the "List Template Gallery" I need to get this new list template by using web services, but the .GetListTemplates method of lists does not retrieve the custom templates. How can I get the custom templates?, so then I can use it to create a list.
自定义Web服务是必经之路- 签出
string listName = "ListTemplateName";
foreach (SPListTemplate template in web.ListTemplates)
{
if (template.InternalName.Equals(internalName))
{
return template;
}
}
Have you tried this using this?
[MSDN][1] http://msdn.microsoft.com/en-us/library/dd586523(office.11).aspx
It should retrieve all the lists including the List Template Gallery, wich is hidden...
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.