Share via


JobStep Constructor (Job, String)

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

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

Syntax

'Declaration
Public Sub New ( _
    job As Job, _
    name As String _
)
'Usage
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
)

Parameters

Examples

Scheduling Automatic Administrative Tasks in SQL Server Agent

See Also

Reference

JobStep Class

JobStep Overload

Microsoft.SqlServer.Management.Smo.Agent Namespace

Other Resources

Automated Administration Tasks (SQL Server Agent)

sp_help_jobstep (Transact-SQL)