共用方式為


JobStep 建構函式 (Job, String)

Initializes a new instance of the JobStep class for the specified job and with the specified name.

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

語法

'宣告
Public Sub New ( _
    job As Job, _
    name As String _
)
'用途
Dim job As Job 
Dim name As String 

Dim instance As New JobStep(job, name)
public JobStep(
    Job job,
    string name
)
public:
JobStep(
    Job^ job, 
    String^ name
)
new : 
        job:Job * 
        name:string -> JobStep
public function JobStep(
    job : Job, 
    name : String
)

參數

範例

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

請參閱

參考

JobStep 類別

JobStep 多載

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

其他資源

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

sp_help_jobstep (Transact-SQL)