共用方式為


JobAddParameter Constructors

Definition

Overloads

JobAddParameter()

Initializes a new instance of the JobAddParameter class.

JobAddParameter(String, PoolInformation, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, JobConstraints, JobManagerTask, JobPreparationTask, JobReleaseTask, IList<EnvironmentSetting>, Nullable<OnAllTasksComplete>, Nullable<OnTaskFailure>, IList<MetadataItem>, Nullable<Boolean>, JobNetworkConfiguration)

Initializes a new instance of the JobAddParameter class.

JobAddParameter()

Source:
JobAddParameter.cs

Initializes a new instance of the JobAddParameter class.

public JobAddParameter ();
Public Sub New ()

Applies to

JobAddParameter(String, PoolInformation, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>, JobConstraints, JobManagerTask, JobPreparationTask, JobReleaseTask, IList<EnvironmentSetting>, Nullable<OnAllTasksComplete>, Nullable<OnTaskFailure>, IList<MetadataItem>, Nullable<Boolean>, JobNetworkConfiguration)

Source:
JobAddParameter.cs

Initializes a new instance of the JobAddParameter class.

public JobAddParameter (string id, Microsoft.Azure.Batch.Protocol.Models.PoolInformation poolInfo, string displayName = default, int? priority = default, int? maxParallelTasks = default, bool? allowTaskPreemption = default, Microsoft.Azure.Batch.Protocol.Models.JobConstraints constraints = default, Microsoft.Azure.Batch.Protocol.Models.JobManagerTask jobManagerTask = default, Microsoft.Azure.Batch.Protocol.Models.JobPreparationTask jobPreparationTask = default, Microsoft.Azure.Batch.Protocol.Models.JobReleaseTask jobReleaseTask = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> commonEnvironmentSettings = default, Microsoft.Azure.Batch.Protocol.Models.OnAllTasksComplete? onAllTasksComplete = default, Microsoft.Azure.Batch.Protocol.Models.OnTaskFailure? onTaskFailure = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.MetadataItem> metadata = default, bool? usesTaskDependencies = default, Microsoft.Azure.Batch.Protocol.Models.JobNetworkConfiguration networkConfiguration = default);
new Microsoft.Azure.Batch.Protocol.Models.JobAddParameter : string * Microsoft.Azure.Batch.Protocol.Models.PoolInformation * string * Nullable<int> * Nullable<int> * Nullable<bool> * Microsoft.Azure.Batch.Protocol.Models.JobConstraints * Microsoft.Azure.Batch.Protocol.Models.JobManagerTask * Microsoft.Azure.Batch.Protocol.Models.JobPreparationTask * Microsoft.Azure.Batch.Protocol.Models.JobReleaseTask * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * Nullable<Microsoft.Azure.Batch.Protocol.Models.OnAllTasksComplete> * Nullable<Microsoft.Azure.Batch.Protocol.Models.OnTaskFailure> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.MetadataItem> * Nullable<bool> * Microsoft.Azure.Batch.Protocol.Models.JobNetworkConfiguration -> Microsoft.Azure.Batch.Protocol.Models.JobAddParameter
Public Sub New (id As String, poolInfo As PoolInformation, Optional displayName As String = Nothing, Optional priority As Nullable(Of Integer) = Nothing, Optional maxParallelTasks As Nullable(Of Integer) = Nothing, Optional allowTaskPreemption As Nullable(Of Boolean) = Nothing, Optional constraints As JobConstraints = Nothing, Optional jobManagerTask As JobManagerTask = Nothing, Optional jobPreparationTask As JobPreparationTask = Nothing, Optional jobReleaseTask As JobReleaseTask = Nothing, Optional commonEnvironmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional onAllTasksComplete As Nullable(Of OnAllTasksComplete) = Nothing, Optional onTaskFailure As Nullable(Of OnTaskFailure) = Nothing, Optional metadata As IList(Of MetadataItem) = Nothing, Optional usesTaskDependencies As Nullable(Of Boolean) = Nothing, Optional networkConfiguration As JobNetworkConfiguration = Nothing)

Parameters

id
String

A string that uniquely identifies the Job within the Account.

poolInfo
PoolInformation

The Pool on which the Batch service runs the Job's Tasks.

displayName
String

The display name for the Job.

priority
Nullable<Int32>

The priority of the Job.

maxParallelTasks
Nullable<Int32>

The maximum number of tasks that can be executed in parallel for the job.

allowTaskPreemption
Nullable<Boolean>

Whether Tasks in this job can be preempted by other high priority jobs

constraints
JobConstraints

The execution constraints for the Job.

jobManagerTask
JobManagerTask

Details of a Job Manager Task to be launched when the Job is started.

jobPreparationTask
JobPreparationTask

The Job Preparation Task.

jobReleaseTask
JobReleaseTask

The Job Release Task.

commonEnvironmentSettings
IList<EnvironmentSetting>

The list of common environment variable settings. These environment variables are set for all Tasks in the Job (including the Job Manager, Job Preparation and Job Release Tasks).

onAllTasksComplete
Nullable<OnAllTasksComplete>

The action the Batch service should take when all Tasks in the Job are in the completed state.

onTaskFailure
Nullable<OnTaskFailure>

The action the Batch service should take when any Task in the Job fails.

metadata
IList<MetadataItem>

A list of name-value pairs associated with the Job as metadata.

usesTaskDependencies
Nullable<Boolean>

Whether Tasks in the Job can define dependencies on each other. The default is false.

networkConfiguration
JobNetworkConfiguration

The network configuration for the Job.

Applies to