using (SPSite site = new SPSite(siteUrl) { site.AllowUnsafeUpdates = true; using (SPWeb currWeb = site.OpenWeb()) { list = currWeb.Lists[libraryName]; SPXmlDocumentCollection collection = ContentTypes[formName].XmlDocuments; //do something with template } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)