共用方式為


JobServer.DropJobByID 方法

Removes the job with the specified ID value.

命名空間:  Microsoft.SqlServer.Management.Smo.Agent
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub DropJobByID ( _
    jobid As Guid _
)
'用途
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
)

參數

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

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

JobServer 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)

sp_delete_job (Transact-SQL)