Share via


SPUpgradeJobDefinition.IsRunning property

Gets a Boolean value that indicates whether the job is currently executing.

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

Syntax

'Declaration
Public ReadOnly Property IsRunning As Boolean
    Get
'Usage
Dim instance As SPUpgradeJobDefinition
Dim value As Boolean

value = instance.IsRunning
public bool IsRunning { get; }

Property value

Type: System.Boolean
true if the job is executing; otherwise, false.

Remarks

When a new instance of the SPUpgradeJobDefinition class is initialized, this property is set to false. The property is set to true when the Execute method begins executing and then back to false as the method completes.

See also

Reference

SPUpgradeJobDefinition class

SPUpgradeJobDefinition members

Microsoft.SharePoint.Administration namespace

Execute(Guid)