共用方式為


SPSite.ContentDatabase property

取得與網站集合相關聯的內容資料庫。

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

Syntax

'宣告
Public ReadOnly Property ContentDatabase As SPContentDatabase
    Get
'用途
Dim instance As SPSite
Dim value As SPContentDatabase

value = instance.ContentDatabase
public SPContentDatabase ContentDatabase { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPContentDatabase
SPContentDatabase 物件,表示內容的資料庫。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace