Delen via


JobServer.DropJobByID Method

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
)

Parameters

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