Share via


SPServiceInstanceJobDefinition.Execute method

Executes the job specified by the job definition.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Sub Execute ( _
    targetInstanceId As Guid _
)
'Usage
Dim instance As SPServiceInstanceJobDefinition
Dim targetInstanceId As Guid

instance.Execute(targetInstanceId)
public override void Execute(
    Guid targetInstanceId
)

Parameters

  • targetInstanceId
    Type: System.Guid

    The Guid object that represents the Id of the target currently being processed by the running job.

    For SPContentDatabase objects, this is the identifier of the content database that is being processed by the running job. When the SPJobLockType has a value of Content Database, this is the instance identifier of the target currently being processed by the running job. For all other lock types, the value is Empty.

See also

Reference

SPServiceInstanceJobDefinition class

SPServiceInstanceJobDefinition members

Microsoft.SharePoint.Administration namespace