次の方法で共有


StartTask コンストラクター

定義

オーバーロード

StartTask()

StartTask クラスの新しいインスタンスを初期化します。

StartTask(String, TaskContainerSettings, IList<ResourceFile>, IList<EnvironmentSetting>, UserIdentity, Nullable<Int32>, Nullable<Boolean>)

StartTask クラスの新しいインスタンスを初期化します。

StartTask()

ソース:
StartTask.cs

StartTask クラスの新しいインスタンスを初期化します。

public StartTask();
Public Sub New ()

適用対象

StartTask(String, TaskContainerSettings, IList<ResourceFile>, IList<EnvironmentSetting>, UserIdentity, Nullable<Int32>, Nullable<Boolean>)

ソース:
StartTask.cs

StartTask クラスの新しいインスタンスを初期化します。

public StartTask(string commandLine, 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.EnvironmentSetting> environmentSettings = default, Microsoft.Azure.Batch.Protocol.Models.UserIdentity userIdentity = default, int? maxTaskRetryCount = default, bool? waitForSuccess = default);
new Microsoft.Azure.Batch.Protocol.Models.StartTask : 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.EnvironmentSetting> * Microsoft.Azure.Batch.Protocol.Models.UserIdentity * Nullable<int> * Nullable<bool> -> Microsoft.Azure.Batch.Protocol.Models.StartTask
Public Sub New (commandLine As String, Optional containerSettings As TaskContainerSettings = Nothing, Optional resourceFiles As IList(Of ResourceFile) = Nothing, Optional environmentSettings As IList(Of EnvironmentSetting) = Nothing, Optional userIdentity As UserIdentity = Nothing, Optional maxTaskRetryCount As Nullable(Of Integer) = Nothing, Optional waitForSuccess As Nullable(Of Boolean) = Nothing)

パラメーター

commandLine
String

StartTask のコマンド ライン。

containerSettings
TaskContainerSettings

StartTask が実行されるコンテナーの設定。

resourceFiles
IList<ResourceFile>

コマンド ラインを実行する前に Batch サービスがコンピューティング ノードにダウンロードするファイルの一覧。 リソース ファイルの一覧には最大サイズがあります。 最大サイズを超えると、要求は失敗し、応答エラー コードは RequestEntityTooLarge になります。 この場合、ResourceFiles のコレクションのサイズを小さくする必要があります。 これは、.zip ファイル、アプリケーション パッケージ、または Docker コンテナーを使用して実現できます。

environmentSettings
IList<EnvironmentSetting>

StartTask の環境変数設定の一覧。

userIdentity
UserIdentity

StartTask を実行するユーザー ID。

maxTaskRetryCount
Nullable<Int32>

タスクを再試行できる最大回数。

waitForSuccess
Nullable<Boolean>

コンピューティング ノードでタスクをスケジュールする前に、Batch サービスが StartTask が正常に完了するまで (つまり終了コード 0 で終了する) のを待つ必要があるかどうか。

適用対象