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 _
)
public JobStep (
Job job,
string name
)
public:
JobStep (
Job^ job,
String^ name
)
public JobStep (
Job job,
String name
)
public function JobStep (
job : Job,
name : String
)
Parameters
- job
A Job object value that specifies the job to which the job step belongs.
- name
A String value that specifies the name of the job step.
Remarks
This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.
Example
How to: Create a Job with Steps and a Schedule in Visual Basic .NET
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
JobStep Class
JobStep Members
Microsoft.SqlServer.Management.Smo.Agent Namespace
Other Resources
Scheduling Automatic Administrative Tasks in SQL Server Agent
Automating Administrative Tasks (SQL Server Agent)
sp_help_jobstep (Transact-SQL)