I am trying to figure out a way to check if a Site inside a Site Collection has sub sites in it.
To get sites inside a site collection, we can use the below code.
foreach (SPWeb siteobject in siteColName.AllWebs)
But how to check if siteobject has sub sites in it.?
Also, if it has subsites, then will it be treated as SPSiteCollection obejct?
Thanks.