Export (0) Print
Expand All

Job Class

Serves as a base class for objects that represents a background job. A background job runs a command that can contain a command or expression. The job is run asynchronously within its own runspace. This class is introduced in Windows PowerShell 2.0.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As Job

public ref class Job abstract : IDisposable
public abstract class Job implements IDisposable
public abstract class Job implements IDisposable

The command run by the job can contain cmdlets, functions, scripts, or any other command-based tasks. It is designed to run commands that take an extended amount of time to complete, but it can run any command in the background.

Jobs are executed within their own runspaces, and those runspaces can exist on the local computer or any number of remote computers. See the ChildJobs property for more information about jobs that run on multiple runspaces.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2014 Microsoft