Job Job Job Constructors

Definition

Overloads

Job() Job()

Default constructor

Job(String) Job(String) Job(String)

Creates an instance of this class

Job(String, String) Job(String, String) Job(String, String)

Creates an instance of this class

Job(String, String, IList<Job>) Job(String, String, IList<Job>) Job(String, String, IList<Job>)

Creates an instance of this class

Job(String, String, Guid) Job(String, String, Guid) Job(String, String, Guid)

Creates an instance of this class

Job(String, String, JobIdentifier) Job(String, String, JobIdentifier) Job(String, String, JobIdentifier)

Creates an instance of this class

Job() Job()

Default constructor

protected Job ();
Protected Sub New ()

Job(String) Job(String) Job(String)

Creates an instance of this class

protected Job (string command);
new System.Management.Automation.Job : string -> System.Management.Automation.Job
Protected Sub New (command As String)
Parameters
command
String String String

Command invoked by this job object

Job(String, String) Job(String, String) Job(String, String)

Creates an instance of this class

protected Job (string command, string name);
new System.Management.Automation.Job : string * string -> System.Management.Automation.Job
Protected Sub New (command As String, name As String)
Parameters
command
String String String

Command invoked by this job object

name
String String String

Friendly name for the job object

Job(String, String, IList<Job>) Job(String, String, IList<Job>) Job(String, String, IList<Job>)

Creates an instance of this class

protected Job (string command, string name, System.Collections.Generic.IList<System.Management.Automation.Job> childJobs);
new System.Management.Automation.Job : string * string * System.Collections.Generic.IList<System.Management.Automation.Job> -> System.Management.Automation.Job
Protected Sub New (command As String, name As String, childJobs As IList(Of Job))
Parameters
command
String String String

Command invoked by this job object

name
String String String

Friendly name for the job object

childJobs
IList<Job>

Child jobs of this job object

Job(String, String, Guid) Job(String, String, Guid) Job(String, String, Guid)

Creates an instance of this class

protected Job (string command, string name, Guid instanceId);
new System.Management.Automation.Job : string * string * Guid -> System.Management.Automation.Job
Protected Sub New (command As String, name As String, instanceId As Guid)
Parameters
command
String String String

Command invoked by this job object

name
String String String

Friendly name for the job object

instanceId
Guid Guid Guid

InstanceId to be used for this job object

Remarks

The InstanceId may need to be set to maintain job identity across
            instances of the process.

Job(String, String, JobIdentifier) Job(String, String, JobIdentifier) Job(String, String, JobIdentifier)

Creates an instance of this class

protected Job (string command, string name, System.Management.Automation.JobIdentifier token);
new System.Management.Automation.Job : string * string * System.Management.Automation.JobIdentifier -> System.Management.Automation.Job
Protected Sub New (command As String, name As String, token As JobIdentifier)
Parameters
command
String String String

Command invoked by this job object

name
String String String

Friendly name for the job object

token
JobIdentifier JobIdentifier JobIdentifier

Id and InstanceId pair to be used for this job object

Remarks

The JobIdentifier is a token that must be issued by PowerShell to allow
            reuse of the Id. This is the only way to set either Id or instance Id.

Applies to