Executes the job definition on the local machine and is intended to be used only by the timer service.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration Public Overridable Sub Execute ( _ targetInstanceId As Guid _ ) 'Usage Dim instance As SPJobDefinition Dim targetInstanceId As Guid instance.Execute(targetInstanceId)
public virtual void Execute( Guid targetInstanceId )
For target types of SPContentDatabase this is the database ID of the content database being processed by the running job.
This value is Guid.Empty for all other target types.
This method is called by the timer service to execute a job, but is not intended as a way to start a job. The new RunNow() method or the Start-SPTimerJob cmdlet should be used instead.