Leer en inglés

Compartir a través de


Job Constructors

Definition

Overloads

Job()

Default constructor.

Job(String)

Creates an instance of this class.

Job(String, String)

Creates an instance of this class.

Job(String, String, IList<Job>)

Creates an instance of this class.

Job(String, String, Guid)

Creates an instance of this class.

Job(String, String, JobIdentifier)

Creates an instance of this class.

Job()

Default constructor.

C++
protected:
 Job();

Applies to

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

Job(String)

Creates an instance of this class.

C++
protected:
 Job(System::String ^ command);

Parameters

command
String

Command invoked by this job object.

Applies to

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

Job(String, String)

Creates an instance of this class.

C++
protected:
 Job(System::String ^ command, System::String ^ name);

Parameters

command
String

Command invoked by this job object.

name
String

Friendly name for the job object.

Applies to

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

Job(String, String, IList<Job>)

Creates an instance of this class.

C++
protected:
 Job(System::String ^ command, System::String ^ name, System::Collections::Generic::IList<System::Management::Automation::Job ^> ^ childJobs);

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

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

Job(String, String, Guid)

Creates an instance of this class.

C++
protected:
 Job(System::String ^ command, System::String ^ name, Guid instanceId);

Parameters

command
String

Command invoked by this job object.

name
String

Friendly name for the job object.

instanceId
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.

Applies to

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0

Job(String, String, JobIdentifier)

Creates an instance of this class.

C++
protected:
 Job(System::String ^ command, System::String ^ name, System::Management::Automation::JobIdentifier ^ token);

Parameters

command
String

Command invoked by this job object.

name
String

Friendly name for the job object.

token
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

PowerShell SDK 7.4.0 y otras versiones
Producto Versiones
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0