共用方式為


SPTimerServiceInstance.AllowContentDatabaseJobs property

取得或設定 Boolean 值,以指定的內容資料庫計時器工作是否可以執行此計時器服務執行個體。

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

Syntax

'宣告
Public Property AllowContentDatabaseJobs As Boolean
    Get
    Set
'用途
Dim instance As SPTimerServiceInstance
Dim value As Boolean

value = instance.AllowContentDatabaseJobs

instance.AllowContentDatabaseJobs = value
public bool AllowContentDatabaseJobs { get; set; }

Property value

Type: System.Boolean
如果服務執行個體可以執行計時器工作 ; 內容資料庫,則會傳回Boolean true否則,會傳回false。預設值為true。

備註

如果您變更此屬性,您必須重新啟動計時器服務。時變更此屬性,您必須也呼叫Update()方法,這允許保存至設定資料庫物件狀態變更並傳播至所有機器整個伺服器陣列。

請注意,如果將伺服器設定為"偏好 」 伺服器的內容資料庫] 計時器工作,然後將此屬性設定為false會導致發生例外狀況。

請參閱

參照

SPTimerServiceInstance class

SPTimerServiceInstance members

Microsoft.SharePoint.Administration namespace