Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

PSJob Members

Represents a background job that runs a pipeline that can contain a command or expression. The job is run asynchronously without interacting with the console.

The following tables list the members exposed by the PSJob type.

  Name Description
PSJob Overloaded.  
Top

  Name Description
public field StateChanged Event fired when the status of the PSJob changes, such as when the job has completed in all runspaces or failed in any one namespace.
Top

  Name Description
public property ChildJobs Gets the PSJob objects for each runspace where the job is run, plus the object that defines the job.
public property Command Gets the pipeline to be executed by the PSJob.
public property Debug Gets and sets the debug output of the PSJob.
public property Error Gets and sets the error output of the PSJob.
public property Finished Gets the wait handle that is set when the job is completed on all runspaces, or stopped or failed on one or more runspaces.
public property HasMoreData Gets a Boolean value that indicates whether the PSJob result has more data.
public property InstanceId Gets the instance identifier of the PSJob that is unique throughout all runspaces.
public property JobStateInfo Gets information about the status of the PSJob.
public property Location  
public property Name Gets and sets the name of the PSJob.
public property Output Gets and sets the output of the PSJob.
public property Progress Gets and sets the progress data of the PSJob.
public property SessionId Gets the identifier of the PSJob that is unique within a session.
public property StatusMessage Gets the success message for the PSJob.
public property Verbose Gets and sets the verbose output for the PSJob.
public property Warning Gets and sets the warning output for the PSJob.
Top

(see also Protected Methods)
 NameDescription
public methodDisposeOverloaded. Disposes the current PSJob object, which frees all resource used by the object. The variants of this method can dispose the method with or without a Boolean value that indicates that the object is in the process of being disposed.
public methodEquals  Overloaded. (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodstaticReferenceEquals  (Inherited from Object)
public methodStopJobStops the PSJob on all runspaces.
public methodToString  (Inherited from Object)
Top

  Name Description
protected method AutoGenerateJobName  
protected method Dispose Overloaded.  
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)
protected method SetJobState Sets the status of the PSJob, such as running, completed, or failed.
Top

Send comments about this topic to Microsoft.
Show:
© 2015 Microsoft