JobStepCollection.Add JobStepCollection.Add Method

Definition

Adds a JobStep object to the JobStepCollection collection.

Overloads

Add(JobStep) Add(JobStep)

Adds a JobStep object to the JobStepCollection collection.

Add(JobStep, Int32) Add(JobStep, Int32)

Adds a JobStep object to the JobStepCollection collection.

Add(JobStep, String) Add(JobStep, String)

Adds a JobStep object to the JobStepCollection collection.

Examples

Using Collections

Add(JobStep) Add(JobStep)

Adds a JobStep object to the JobStepCollection collection.

public:
 void Add(Microsoft::SqlServer::Management::Smo::Agent::JobStep ^ jobStep);
public void Add (Microsoft.SqlServer.Management.Smo.Agent.JobStep jobStep);
Parameters
jobStep
JobStep JobStep

A JobStep object that specifies the job step to be added to the JobStepCollection collection.

Examples

Using Collections

Add(JobStep, Int32) Add(JobStep, Int32)

Adds a JobStep object to the JobStepCollection collection.

public:
 void Add(Microsoft::SqlServer::Management::Smo::Agent::JobStep ^ jobStep, int insertAtPosition);
public void Add (Microsoft.SqlServer.Management.Smo.Agent.JobStep jobStep, int insertAtPosition);
Parameters
jobStep
JobStep JobStep

A JobStep object that specifies the job step to be added to the JobStepCollection collection.

insertAtPosition
Int32 Int32

An Int32 representing the position in the collection at which to insert the jobStep

Examples

Using Collections

Add(JobStep, String) Add(JobStep, String)

Adds a JobStep object to the JobStepCollection collection.

public:
 void Add(Microsoft::SqlServer::Management::Smo::Agent::JobStep ^ jobStep, System::String ^ insertAtColumnName);
public void Add (Microsoft.SqlServer.Management.Smo.Agent.JobStep jobStep, string insertAtColumnName);
Parameters
jobStep
JobStep JobStep

A JobStep object that specifies the job step to be added to the JobStepCollection collection.

insertAtColumnName
String String

A string representing the name of the jobstep.

Applies to