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)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation)
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.
System.Object
System.Management.Automation.Job
System.Management.Automation.Job2
Microsoft.PowerShell.ScheduledJob.ScheduledJob
Microsoft.PowerShell.Workflow.PSWorkflowJob
System.Management.Automation.ContainerParentJob
System.Management.Automation.PSChildJobProxy
System.Management.Automation.PSJobProxy
System.Management.Automation.Job
System.Management.Automation.Job2
Microsoft.PowerShell.ScheduledJob.ScheduledJob
Microsoft.PowerShell.Workflow.PSWorkflowJob
System.Management.Automation.ContainerParentJob
System.Management.Automation.PSChildJobProxy
System.Management.Automation.PSJobProxy
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 PreviewSend comments about this topic to Microsoft.