Share via


JobStepCollection.Add Method (JobStep, Int32)

Adds a JobStep object to the JobStepCollection collection.

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

Syntax

'Declaration
Public Sub Add ( _
    jobStep As JobStep, _
    insertAtPosition As Integer _
)
'Usage
Dim instance As JobStepCollection 
Dim jobStep As JobStep 
Dim insertAtPosition As Integer

instance.Add(jobStep, insertAtPosition)
public void Add(
    JobStep jobStep,
    int insertAtPosition
)
public:
void Add(
    JobStep^ jobStep, 
    int insertAtPosition
)
member Add : 
        jobStep:JobStep * 
        insertAtPosition:int -> unit
public function Add(
    jobStep : JobStep, 
    insertAtPosition : int
)

Parameters

  • insertAtPosition
    Type: System.Int32
    An Int32 representing the position in the collection at which to insert the jobStep

Examples

Using Collections

See Also

Reference

JobStepCollection Class

Add Overload

Microsoft.SqlServer.Management.Smo.Agent Namespace