Share via


TimerJobUtility.ExecuteTimerJob method

This member is reserved for internal use and is not intended to be used directly from your code.

Namespace:  Microsoft.Office.Server.Utilities
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Sub ExecuteTimerJob ( _
    jobdef As SPJobDefinition, _
    targetInstanceId As Guid, _
    sitesProcessor As ContentIterator.SitesProcessor _
)
'Usage
Dim instance As TimerJobUtility
Dim jobdef As SPJobDefinition
Dim targetInstanceId As Guid
Dim sitesProcessor As ContentIterator.SitesProcessor

instance.ExecuteTimerJob(jobdef, targetInstanceId, _
    sitesProcessor)
public void ExecuteTimerJob(
    SPJobDefinition jobdef,
    Guid targetInstanceId,
    ContentIterator.SitesProcessor sitesProcessor
)

Parameters

  • targetInstanceId
    Type: System.Guid

    The target content database of this iteration of the timer job.This must be specified if jobdef.LockType == SPJobLockType.ContentDatabase; otherwise it must be a null reference (Nothing in Visual Basic).

Remarks

This API only supports lock types as constrained by ValidateLockType. It assumes that the timer job is executing by enumerating all sites in the farm and processing (a subset of) them.

See also

Reference

TimerJobUtility class

TimerJobUtility members

Microsoft.Office.Server.Utilities namespace

ValidateLockType(SPJobLockType)