다음을 통해 공유


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

'Declaration
Public ReadOnly Property Sites As SPSiteCollection
    Get
'Usage
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