SPContentDatabase.PreferredTimerServiceInstance property

Gets or sets the timer service instance that will execute any timer jobs against the content database.

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

Syntax

'Declaration
Public Property PreferredTimerServiceInstance As SPTimerServiceInstance
    Get
    Set
'Usage
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
The timer service instance.

Remarks

The timer service runs on all front-end Web servers and, typically, all application servers, on the farm. It generally does not run on the database server, if the farm has a dedicated database server. Each server on which the service runs has its own instance of the service, represented by an SPTimerServiceInstance object. For more information on this class and its role in the SharePoint Foundation architecture, see The Services Hierarchy of Windows SharePoint Services and Background: Service Entities in Windows SharePoint Services.

See also

Reference

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace

SPTimerServiceInstance

Other resources

The Services Hierarchy of Windows SharePoint Services

Background: Service Entities in Windows SharePoint Services