I`m making SharePoint site Analysis program.
And I have a question.
In Sites(SPWeb) Level, I want to count document library.
So I`m using SPWeb.DocTemplate Property like this.
public class WebInfos
{
public void GetWebInfos(SPWeb web, ref ListInfos listinfos)
{
listinfos.SiteDocumentLibCount = web.DocTemplates.Count.ToString();
}
}
But the all sites result is always same...
Am I using wrong property? or make a method??
Please somebody help me