Freigeben über


JobServer.DropJobByID-Methode

Removes the job with the specified ID value.

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

Syntax

'Declaration
Public Sub DropJobByID ( _
    jobid As Guid _
)
'Usage
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
)

Parameter

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

Beispiele

Planen von automatischen, administrativen Tasks im SQL Server-Agent

Siehe auch

Verweis

JobServer Klasse

Microsoft.SqlServer.Management.Smo.Agent-Namespace

Andere Ressourcen

Automatisierte Administrationstasks (SQL Server-Agent)

sp_delete_job (Transact-SQL)