Share via


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)
Available in Sandboxed Solutions: No

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 Services Hierarchy of Microsoft SharePoint Foundation and Background: Service Entities in Microsoft SharePoint Foundation.

See Also

Reference

SPContentDatabase Class

SPContentDatabase Members

Microsoft.SharePoint.Administration Namespace

SPTimerServiceInstance

Other Resources

Services Hierarchy of Microsoft SharePoint Foundation

Background: Service Entities in Microsoft SharePoint Foundation