SPRunningJob.JobDefinition property

Gets the job definition of the running job.

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

Syntax

'Declaration
Public ReadOnly Property JobDefinition As SPJobDefinition
    Get
'Usage
Dim instance As SPRunningJob
Dim value As SPJobDefinition

value = instance.JobDefinition
public SPJobDefinition JobDefinition { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPJobDefinition
A SPJobDefinition that represents the job definition for the running job.

Remarks

The parent object provides the job definition. It is either a SPWebApplication object or an SPService object if the SPWebApplication object does not exist.

See also

Reference

SPRunningJob class

SPRunningJob members

Microsoft.SharePoint.Administration namespace

SPFarm