Job2 Class

Represents a new base class for a job that provides extended state management functionality.

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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft. All rights reserved.