共用方式為


CloudTask Constructors

Definition

Overloads

CloudTask()

Initializes a new instance of the CloudTask class.

CloudTask(String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, ExitConditions, Nullable<TaskState>, Nullable<DateTime>, Nullable<TaskState>, Nullable<DateTime>, String, TaskContainerSettings, IList<ResourceFile>, IList<OutputFile>, IList<EnvironmentSetting>, AffinityInformation, TaskConstraints, Nullable<Int32>, UserIdentity, TaskExecutionInformation, ComputeNodeInformation, MultiInstanceSettings, TaskStatistics, TaskDependencies, IList<ApplicationPackageReference>, AuthenticationTokenSettings)

Initializes a new instance of the CloudTask class.

CloudTask()

Source:
CloudTask.cs

Initializes a new instance of the CloudTask class.

public CloudTask ();
Public Sub New ()

Applies to

CloudTask(String, String, String, String, Nullable<DateTime>, Nullable<DateTime>, ExitConditions, Nullable<TaskState>, Nullable<DateTime>, Nullable<TaskState>, Nullable<DateTime>, String, TaskContainerSettings, IList<ResourceFile>, IList<OutputFile>, IList<EnvironmentSetting>, AffinityInformation, TaskConstraints, Nullable<Int32>, UserIdentity, TaskExecutionInformation, ComputeNodeInformation, MultiInstanceSettings, TaskStatistics, TaskDependencies, IList<ApplicationPackageReference>, AuthenticationTokenSettings)

Source:
CloudTask.cs

Initializes a new instance of the CloudTask class.

public CloudTask (string id = default, string displayName = default, string url = default, string eTag = default, DateTime? lastModified = default, DateTime? creationTime = default, Microsoft.Azure.Batch.Protocol.Models.ExitConditions exitConditions = default, Microsoft.Azure.Batch.Protocol.Models.TaskState? state = default, DateTime? stateTransitionTime = default, Microsoft.Azure.Batch.Protocol.Models.TaskState? previousState = default, DateTime? previousStateTransitionTime = default, string commandLine = default, Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings containerSettings = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> resourceFiles = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.OutputFile> outputFiles = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> environmentSettings = default, Microsoft.Azure.Batch.Protocol.Models.AffinityInformation affinityInfo = default, Microsoft.Azure.Batch.Protocol.Models.TaskConstraints constraints = default, int? requiredSlots = default, Microsoft.Azure.Batch.Protocol.Models.UserIdentity userIdentity = default, Microsoft.Azure.Batch.Protocol.Models.TaskExecutionInformation executionInfo = default, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeInformation nodeInfo = default, Microsoft.Azure.Batch.Protocol.Models.MultiInstanceSettings multiInstanceSettings = default, Microsoft.Azure.Batch.Protocol.Models.TaskStatistics stats = default, Microsoft.Azure.Batch.Protocol.Models.TaskDependencies dependsOn = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ApplicationPackageReference> applicationPackageReferences = default, Microsoft.Azure.Batch.Protocol.Models.AuthenticationTokenSettings authenticationTokenSettings = default);
new Microsoft.Azure.Batch.Protocol.Models.CloudTask : string * string * string * string * Nullable<DateTime> * Nullable<DateTime> * Microsoft.Azure.Batch.Protocol.Models.ExitConditions * Nullable<Microsoft.Azure.Batch.Protocol.Models.TaskState> * Nullable<DateTime> * Nullable<Microsoft.Azure.Batch.Protocol.Models.TaskState> * Nullable<DateTime> * string * Microsoft.Azure.Batch.Protocol.Models.TaskContainerSettings * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ResourceFile> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.OutputFile> * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.EnvironmentSetting> * Microsoft.Azure.Batch.Protocol.Models.AffinityInformation * Microsoft.Azure.Batch.Protocol.Models.TaskConstraints * Nullable<int> * Microsoft.Azure.Batch.Protocol.Models.UserIdentity * Microsoft.Azure.Batch.Protocol.Models.TaskExecutionInformation * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeInformation * Microsoft.Azure.Batch.Protocol.Models.MultiInstanceSettings * Microsoft.Azure.Batch.Protocol.Models.TaskStatistics * Microsoft.Azure.Batch.Protocol.Models.TaskDependencies * System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ApplicationPackageReference> * Microsoft.Azure.Batch.Protocol.Models.AuthenticationTokenSettings -> Microsoft.Azure.Batch.Protocol.Models.CloudTask
Public Sub New (Optional id As String = Nothing, Optional displayName As String = Nothing, Optional url As String = Nothing, Optional eTag As String = Nothing, Optional lastModified As Nullable(Of DateTime) = Nothing, Optional creationTime As Nullable(Of DateTime) = Nothing, Optional exitConditions As ExitConditions = Nothing, Optional state As Nullable(Of TaskState) = Nothing, Optional stateTransitionTime As Nullable(Of DateTime) = Nothing, Optional previousState As Nullable(Of TaskState) = Nothing, Optional previousStateTransitionTime As Nullable(Of DateTime) = Nothing, Optional commandLine As String = Nothing, Optional containerSettings As TaskContainerSettings = Nothing, Optional resourceFiles As IList(Of ResourceFile) = Nothing, Optional outputFiles As IList(Of OutputFile) = Nothing, Optional environmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional affinityInfo As AffinityInformation = Nothing, Optional constraints As TaskConstraints = Nothing, Optional requiredSlots As Nullable(Of Integer) = Nothing, Optional userIdentity As UserIdentity = Nothing, Optional executionInfo As TaskExecutionInformation = Nothing, Optional nodeInfo As ComputeNodeInformation = Nothing, Optional multiInstanceSettings As MultiInstanceSettings = Nothing, Optional stats As TaskStatistics = Nothing, Optional dependsOn As TaskDependencies = Nothing, Optional applicationPackageReferences As IList(Of ApplicationPackageReference) = Nothing, Optional authenticationTokenSettings As AuthenticationTokenSettings = Nothing)

Parameters

id
String

A string that uniquely identifies the Task within the Job.

displayName
String

A display name for the Task.

url
String

The URL of the Task.

eTag
String

The ETag of the Task.

lastModified
Nullable<DateTime>

The last modified time of the Task.

creationTime
Nullable<DateTime>

The creation time of the Task.

exitConditions
ExitConditions

How the Batch service should respond when the Task completes.

state
Nullable<TaskState>

The current state of the Task.

stateTransitionTime
Nullable<DateTime>

The time at which the Task entered its current state.

previousState
Nullable<TaskState>

The previous state of the Task.

previousStateTransitionTime
Nullable<DateTime>

The time at which the Task entered its previous state.

commandLine
String

The command line of the Task.

containerSettings
TaskContainerSettings

The settings for the container under which the Task runs.

resourceFiles
IList<ResourceFile>

A list of files that the Batch service will download to the Compute Node before running the command line.

outputFiles
IList<OutputFile>

A list of files that the Batch service will upload from the Compute Node after running the command line.

environmentSettings
IList<EnvironmentSetting>

A list of environment variable settings for the Task.

affinityInfo
AffinityInformation

A locality hint that can be used by the Batch service to select a Compute Node on which to start the new Task.

constraints
TaskConstraints

The execution constraints that apply to this Task.

requiredSlots
Nullable<Int32>

The number of scheduling slots that the Task requires to run.

userIdentity
UserIdentity

The user identity under which the Task runs.

executionInfo
TaskExecutionInformation

Information about the execution of the Task.

nodeInfo
ComputeNodeInformation

Information about the Compute Node on which the Task ran.

multiInstanceSettings
MultiInstanceSettings

An object that indicates that the Task is a multi-instance Task, and contains information about how to run the multi-instance Task.

stats
TaskStatistics

Resource usage statistics for the Task.

dependsOn
TaskDependencies

The Tasks that this Task depends on.

applicationPackageReferences
IList<ApplicationPackageReference>

A list of Packages that the Batch service will deploy to the Compute Node before running the command line.

authenticationTokenSettings
AuthenticationTokenSettings

The settings for an authentication token that the Task can use to perform Batch service operations.

Applies to