Freigeben über


Job2 Constructors

Definition

Overloads

Job2()

Default no argument constructor.

Job2(String)

Constructor which will initialize the job with the associated command string.

Job2(String, String)

Creates an instance of this class.

Job2(String, String, IList<Job>)

Creates an instance of this class.

Job2(String, String, Guid)

Creates an instance of this class.

Job2(String, String, JobIdentifier)

Creates an instance of this class.

Job2()

Default no argument constructor.

protected:
 Job2();
protected:
 Job2();
 Job2();
protected Job2 ();
Protected Sub New ()

Applies to

Job2(String)

Constructor which will initialize the job with the associated command string.

protected:
 Job2(System::String ^ command);
protected:
 Job2(Platform::String ^ command);
 Job2(std::wstring const & command);
protected Job2 (string command);
new System.Management.Automation.Job2 : string -> System.Management.Automation.Job2
Protected Sub New (command As String)

Parameters

command
String

string representation of the command the job is running

Applies to

Job2(String, String)

Creates an instance of this class.

protected:
 Job2(System::String ^ command, System::String ^ name);
protected:
 Job2(Platform::String ^ command, Platform::String ^ name);
 Job2(std::wstring const & command, std::wstring const & name);
protected Job2 (string command, string name);
new System.Management.Automation.Job2 : string * string -> System.Management.Automation.Job2
Protected Sub New (command As String, name As String)

Parameters

command
String

Command invoked by this job object.

name
String

Friendly name for the job object.

Applies to

Job2(String, String, IList<Job>)

Creates an instance of this class.

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

Parameters

command
String

Command invoked by this job object.

name
String

Friendly name for the job object.

childJobs
IList<Job>

Child jobs of this job object.

Applies to

Job2(String, String, Guid)

Creates an instance of this class.

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

Parameters

command
String

Command string.

name
String

Friendly name for the job.

instanceId
Guid

Instance ID to allow job identification across sessions.

Applies to

Job2(String, String, JobIdentifier)

Creates an instance of this class.

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

Parameters

command
String

Command invoked by this job object.

name
String

Friendly name for the job object.

token
JobIdentifier

JobIdentifier token used to assign Id and InstanceId.

Applies to