SPWebApplication webApp = SPWebApplication.Lookup(new Uri(WebApp));
foreach (SPSite site in webApp.Sites)
{
SPWeb thisweb = site.OpenWeb();
string WebName = site.Url;
string templateName = thisweb.WebTemplate;
site.Dispose();
}
foreach (SPSite site in webApp.Sites)
{
SPWeb thisweb = site.OpenWeb();
string WebName = site.Url;
string templateName = thisweb.WebTemplate;
site.Dispose();
}
No comments:
Post a Comment