Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Job2 Class

Represents a new base class for a job that provides extended state management functionality. Introduced in Windows PowerShell 3.0.

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

Dim instance As Job2

Public MustInherit Class Job2
	Inherits Job
public abstract class Job2 extends Job
public abstract class Job2 extends Job

Asynchronous support can be provided through two possible patterns:

  1. A classical pattern (Begin and End).

  2. An event-based pattern.

Unlike the PowerShell API, which uses the classical pattern, the Job API uses the event-based pattern.

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

© 2015 Microsoft