Share via


Job.CurrentRunStatus Property

Gets the current execution status of the job.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Expensive)> _
Public ReadOnly Property CurrentRunStatus As JobExecutionStatus
    Get
'Usage
Dim instance As Job
Dim value As JobExecutionStatus

value = instance.CurrentRunStatus
[SfcPropertyAttribute(SfcPropertyFlags.Expensive)]
public JobExecutionStatus CurrentRunStatus { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Expensive)]
public:
property JobExecutionStatus CurrentRunStatus {
    JobExecutionStatus get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Expensive)>]
member CurrentRunStatus : JobExecutionStatus
function get CurrentRunStatus () : JobExecutionStatus

Property Value

Type: Microsoft.SqlServer.Management.Smo.Agent.JobExecutionStatus
A JobExecutionStatus object value that specifies the current execution status of the job.