This topic has not yet been rated - Rate this topic

Job2 Class

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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)
'Usage
Dim instance As Job2

public abstract class Job2 : Job
public abstract class Job2 extends Job
public abstract class Job2 extends Job

The following are some of the notes about why the asynchronous operations are provided this way in this class.

There are two possible options in which asynchronous support can be provided:

1. Classical pattern (Begin and End)

2. Event based pattern

Although the PowerShell API uses the classical pattern and we would like the Job API and PowerShell API to be as close as possible, the classical pattern is inherently complex to use.


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.
Did you find this helpful?
(1500 characters remaining)