共用方式為


SPPersistedObject.Status property

取得或設定此類別代表物件的狀態。

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

Syntax

'宣告
Public Property Status As SPObjectStatus
    Get
    Set
'用途
Dim instance As SPPersistedObject
Dim value As SPObjectStatus

value = instance.Status

instance.Status = value
public SPObjectStatus Status { get; set; }

Property value

Type: Microsoft.SharePoint.Administration.SPObjectStatus
會指定物件狀態SPObjectStatus值。SPContentDatabase內容中物件、 Online及Disabled值分別對應到準備好離線可透過 SharePoint 管理中心的 [管理內容資料庫設定] 頁面上的 [資料庫狀態] 方塊中選取的值。

請參閱

參照

SPPersistedObject class

SPPersistedObject members

Microsoft.SharePoint.Administration namespace