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
- jobdef
Type: Microsoft.SharePoint.Administration.SPJobDefinition
The timer job definition.
- 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).
- sitesProcessor
Type: Microsoft.Office.Server.Utilities.ContentIterator.SitesProcessor
The callout to process the sites.
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.