Sites Property
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

SPWebApplication.Sites Property

Windows SharePoint Services 3

Gets the collection of all site collections in the Web application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPSiteCollection Sites { get; }

Property Value

Type: Microsoft.SharePoint.Administration.SPSiteCollection
An SPSiteCollection object that represents the collection of site collections.
© 2015 Microsoft