Compartilhar via


SPDiagnosticsService.CreateTimerJob Method

Creates a timer job to update the service configuration, based on the configuration that is stored in the content database.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub CreateTimerJob
'Usage
Dim instance As SPDiagnosticsService

instance.CreateTimerJob()
public void CreateTimerJob()

Remarks

In most circumstances, you should call the Update() method rather than this method. Use the CreateTimeJob method only if you suspect that the service configuration stored in the local registry is not current and you want to update it to match the configuration that is stored in the content database.

See Also

Reference

SPDiagnosticsService Class

SPDiagnosticsService Members

Microsoft.SharePoint.Administration Namespace

Update()