共用方式為


SPContentDatabase.PreferredTimerServiceInstance property

取得或設定將會執行任何計時器工作對內容資料庫之計時器服務執行個體。

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

Syntax

'宣告
Public Property PreferredTimerServiceInstance As SPTimerServiceInstance
    Get
    Set
'用途
Dim instance As SPContentDatabase
Dim value As SPTimerServiceInstance

value = instance.PreferredTimerServiceInstance

instance.PreferredTimerServiceInstance = value
public SPTimerServiceInstance PreferredTimerServiceInstance { get; set; }

Property value

Type: Microsoft.SharePoint.Administration.SPTimerServiceInstance
計時器服務執行個體。

備註

伺服器陣列上所有前端網頁伺服器和,一般而言,所有的應用程式伺服器上執行計時器服務。它通常執行的資料庫伺服器上,如果伺服器陣列具有專用的資料庫伺服器。執行服務的每部伺服器有其專屬SPTimerServiceInstance物件所代表的服務執行個體。如需有關此類別,其SharePoint Foundation架構中的角色的詳細資訊,請參閱The Services Hierarchy of Windows SharePoint ServicesBackground: Service Entities in Windows SharePoint Services

請參閱

參照

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace

SPTimerServiceInstance

其他資源

The Services Hierarchy of Windows SharePoint Services

Background: Service Entities in Windows SharePoint Services