SPWebApplication.Sites property
SharePoint 2013
Gets the collection of all site collections in the Web application.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: Microsoft.SharePoint.Administration.SPSiteCollectionAn SPSiteCollection object that represents the collection of site collections.