Méthode JobServer.DropJobByID

Removes the job with the specified ID value.

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

Syntaxe

'Déclaration
Public Sub DropJobByID ( _
    jobid As Guid _
)
'Utilisation
Dim instance As JobServer 
Dim jobid As Guid

instance.DropJobByID(jobid)
public void DropJobByID(
    Guid jobid
)
public:
void DropJobByID(
    Guid jobid
)
member DropJobByID : 
        jobid:Guid -> unit
public function DropJobByID(
    jobid : Guid
)

Paramètres

  • jobid
    Type : System.Guid
    A Guid system object value that specifies the job ID value.

Exemples

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

Voir aussi

Référence

JobServer Classe

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

Autres ressources

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

sp_delete_job (Transact-SQL)