Partager via


Propriété 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.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Agent
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Property CurrentExecutionStatus As JobExecutionStatus 
    Get 
    Set
'Utilisation
Dim instance As JobFilter 
Dim value As JobExecutionStatus 

value = instance.CurrentExecutionStatus

instance.CurrentExecutionStatus = value
public JobExecutionStatus CurrentExecutionStatus { get; set; }
public:
property JobExecutionStatus CurrentExecutionStatus {
    JobExecutionStatus get ();
    void set (JobExecutionStatus value);
}
member CurrentExecutionStatus : JobExecutionStatus with get, set
function get CurrentExecutionStatus () : JobExecutionStatus 
function set CurrentExecutionStatus (value : JobExecutionStatus)

Valeur de propriété

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

Notes

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".

Exemples

Planification des tâches administratives automatiques dans l'Agent SQL Server

Voir aussi

Référence

JobFilter Classe

Espace de noms Microsoft.SqlServer.Management.Smo.Agent

Autres ressources

Tâches d'administration automatisée (Agent SQL Server)