다음을 통해 공유


JobSourceAdapter.NewJob Method

Definition

Overloads

NewJob(JobDefinition)

Create a new job with the specified definition.

NewJob(JobInvocationInfo)

Create a new job with the specified JobSpecification.

NewJob(String, String)

Creates a new job with the definition as specified by the provided definition name and path. If path is null then a default location will be used to find the job definition by name.

NewJob(JobDefinition)

Create a new job with the specified definition.

public:
 System::Management::Automation::Job2 ^ NewJob(System::Management::Automation::JobDefinition ^ definition);
public System.Management.Automation.Job2 NewJob (System.Management.Automation.JobDefinition definition);
member this.NewJob : System.Management.Automation.JobDefinition -> System.Management.Automation.Job2
Public Function NewJob (definition As JobDefinition) As Job2

Parameters

definition
JobDefinition

Job definition to use.

Returns

Job object.

Applies to

NewJob(JobInvocationInfo)

Create a new job with the specified JobSpecification.

public:
 abstract System::Management::Automation::Job2 ^ NewJob(System::Management::Automation::JobInvocationInfo ^ specification);
public abstract System.Management.Automation.Job2 NewJob (System.Management.Automation.JobInvocationInfo specification);
abstract member NewJob : System.Management.Automation.JobInvocationInfo -> System.Management.Automation.Job2
Public MustOverride Function NewJob (specification As JobInvocationInfo) As Job2

Parameters

specification
JobInvocationInfo

Specification.

Returns

Job object.

Applies to

NewJob(String, String)

Creates a new job with the definition as specified by the provided definition name and path. If path is null then a default location will be used to find the job definition by name.

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

Parameters

definitionName
String

Job definition name.

definitionPath
String

Job definition file path.

Returns

Job2 object.

Applies to