Share via


ScheduledJobSourceAdapter.NewJob Method

Definition

Overloads

NewJob(JobInvocationInfo)

Create a new Job2 results instance.

NewJob(String, String)

Creates a new Job2 object based on a definition name that can be run manually. If the path parameter is null then a default location will be used to find the job definition by name.

NewJob(JobInvocationInfo)

Create a new Job2 results instance.

public override System.Management.Automation.Job2 NewJob (System.Management.Automation.JobInvocationInfo specification);
override this.NewJob : System.Management.Automation.JobInvocationInfo -> System.Management.Automation.Job2
Public Overrides Function NewJob (specification As JobInvocationInfo) As Job2

Parameters

specification
JobInvocationInfo

Job specification

Returns

Job2

Applies to

NewJob(String, String)

Creates a new Job2 object based on a definition name that can be run manually. If the path parameter is null then a default location will be used to find the job definition by name.

public override System.Management.Automation.Job2 NewJob (string definitionName, string definitionPath);
override this.NewJob : string * string -> System.Management.Automation.Job2
Public Overrides Function NewJob (definitionName As String, definitionPath As String) As Job2

Parameters

definitionName
String

ScheduledJob definition name

definitionPath
String

ScheduledJob definition file path

Returns

Job2 object

Applies to