Proprietà JobFilter.CurrentExecutionStatus

Gets or sets the job filter constraint that restricts the values returned by the JobServer object's EnumJobs method to the current execution status.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

public JobExecutionStatus CurrentExecutionStatus { get; set; }

Valore proprietà

Tipo: Microsoft.SqlServer.Management.Smo.Agent.JobExecutionStatus
A JobExecutionStatus object value that specifies the current execution status constraint for the job filter.

Osservazioni

The job filter can be used to restrict the list returned by the JobServer object's EnumJobs method to jobs in a particular state of execution, such as "waiting for a worker thread" or "between retries".

Esempi

Pianificazione delle attività amministrative automatiche in SQL Server Agent

Vedere anche

Riferimento

JobFilter Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Agent

Altre risorse

Automatizzazione delle attività amministrative (SQL Server Agent)