Partager via


Constructeur Job

Initializes a new instance of the Job class.

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

Syntaxe

'Déclaration
Public Sub New
'Utilisation
Dim instance As New Job()
public Job()
public:
Job()
new : unit -> Job
public function Job()

Notes

The default constructor initializes any fields to their default values.

Exemples

The following code example creates a new, default instance of the Job class.

C#

Job jb = new Job()

PowerShell

$jb = new-object Microsoft.SqlServer.Management.Smo.Agent.Job

Voir aussi

Référence

Job Classe

Surcharge Job

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

Autres ressources

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

sp_add_job (Transact-SQL)

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