共用方式為


SPContentDatabase.Sites property

取得表示內容資料庫中的網站集合的集合。

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

Syntax

'宣告
Public ReadOnly Property Sites As SPSiteCollection
    Get
'用途
Dim instance As SPContentDatabase
Dim value As SPSiteCollection

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

Property value

Type: Microsoft.SharePoint.Administration.SPSiteCollection
SPSiteCollection 物件,代表集合的網站集合。

請參閱

參照

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace