SPWebApplication.Sites Property
SharePoint 2010
Gets the collection of all site collections in the Web application.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Property Value
Type: Microsoft.SharePoint.Administration.SPSiteCollectionAn SPSiteCollection object that represents the collection of site collections.