PSJob Constructor (String, String, Generic IList)
Initializes a new instance of the PSJob class, and defines the pipeline, name, and child jobs of the PSJob.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Usage
Syntax
'Declaration
Protected Sub New ( _
command As String, _
name As String, _
childJobs As IList(Of PSJob) _
)
protected PSJob (
string command,
string name,
IList<PSJob> childJobs
)
protected:
PSJob (
String^ command,
String^ name,
IList<PSJob^>^ childJobs
)
protected PSJob (
String command,
String name,
IList<PSJob> childJobs
)
protected function PSJob (
command : String,
name : String,
childJobs : IList<PSJob>
)
Parameters
- command
The pipeline that is executed by the PSJob.
- name
The name used to identify the PSJob. The job name is used to start running the job, to get information about the job, and more.
- childJobs
A list of PSJob objects that represent the PSJob for each runspace where the job is run.
Remarks
The pipeline that the PSJob executes can contain cmdlets, functions, scripts, script cmdlets, or any other command-based tasks.
Platforms
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP
See Also
Reference
PSJob Class
PSJob Members
System.Management.Automation Namespace