共用方式為


PSJobProxy.StartJobAsync Method

Definition

Overloads

StartJobAsync()

Start a job asynchronously

StartJobAsync(PSDataCollection<Object>)

Start execution of the workflow with the specified input. This input will serve as input to the underlying pipeline

StartJobAsync(EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>, PSDataCollection<Object>)

Start asynchronous execution of the workflow with the specified input. This input will serve as input to the underlying pipeline. Because the number of child jobs is unknown before starting the job, delegates may be indicated to ensure that no events will be missed after the child job is created if data begins streaming back immediately.

StartJobAsync()

Start a job asynchronously

public:
 override void StartJobAsync();
public:
 override void StartJobAsync();
 override void StartJobAsync();
public override void StartJobAsync ();
override this.StartJobAsync : unit -> unit
Public Overrides Sub StartJobAsync ()

Remarks

When a job is started all the data in the job streams from a previous invocation will be cleared

Applies to

StartJobAsync(PSDataCollection<Object>)

Start execution of the workflow with the specified input. This input will serve as input to the underlying pipeline

public:
 void StartJobAsync(System::Management::Automation::PSDataCollection<System::Object ^> ^ input);
public void StartJobAsync (System.Management.Automation.PSDataCollection<object> input);
override this.StartJobAsync : System.Management.Automation.PSDataCollection<obj> -> unit
Public Sub StartJobAsync (input As PSDataCollection(Of Object))

Parameters

input
PSDataCollection<Object>

collection of input objects

Applies to

StartJobAsync(EventHandler<JobDataAddedEventArgs>, EventHandler<JobStateEventArgs>, PSDataCollection<Object>)

Start asynchronous execution of the workflow with the specified input. This input will serve as input to the underlying pipeline. Because the number of child jobs is unknown before starting the job, delegates may be indicated to ensure that no events will be missed after the child job is created if data begins streaming back immediately.

public:
 void StartJobAsync(EventHandler<System::Management::Automation::JobDataAddedEventArgs ^> ^ dataAdded, EventHandler<System::Management::Automation::JobStateEventArgs ^> ^ stateChanged, System::Management::Automation::PSDataCollection<System::Object ^> ^ input);
public void StartJobAsync (EventHandler<System.Management.Automation.JobDataAddedEventArgs> dataAdded, EventHandler<System.Management.Automation.JobStateEventArgs> stateChanged, System.Management.Automation.PSDataCollection<object> input);
override this.StartJobAsync : EventHandler<System.Management.Automation.JobDataAddedEventArgs> * EventHandler<System.Management.Automation.JobStateEventArgs> * System.Management.Automation.PSDataCollection<obj> -> unit
Public Sub StartJobAsync (dataAdded As EventHandler(Of JobDataAddedEventArgs), stateChanged As EventHandler(Of JobStateEventArgs), input As PSDataCollection(Of Object))

Parameters

dataAdded
EventHandler<JobDataAddedEventArgs>

delegate used to subscribe to data added events on the child jobs

stateChanged
EventHandler<JobStateEventArgs>

delegate used to subscribe to state changed events on the child jobs

input
PSDataCollection<Object>

collection of input objects

Applies to