Compartir a través de


SPWebApplication.Sites Property

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

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

Syntax

Public ReadOnly Property Sites As SPSiteCollection
    Get

Dim instance As SPWebApplication
Dim value As SPSiteCollection

value = instance.Sites
public SPSiteCollection Sites { get; }

Property Value

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

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace