你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TaskContainerSettings Constructors

Definition

Overloads

TaskContainerSettings()

Source:
TaskContainerSettings.cs

Default constructor to support mocking the TaskContainerSettings class.

protected TaskContainerSettings();
Protected Sub New ()

Applies to

TaskContainerSettings(String, String, ContainerRegistry, Nullable<ContainerWorkingDirectory>, IList<ContainerHostBatchBindMountEntry>)

Source:
TaskContainerSettings.cs

Initializes a new instance of the TaskContainerSettings class.

public TaskContainerSettings(string imageName, string containerRunOptions = default, Microsoft.Azure.Batch.ContainerRegistry registry = default, Microsoft.Azure.Batch.Common.ContainerWorkingDirectory? workingDirectory = default, System.Collections.Generic.IList<Microsoft.Azure.Batch.ContainerHostBatchBindMountEntry> containerHostBatchBindMounts = default);
new Microsoft.Azure.Batch.TaskContainerSettings : string * string * Microsoft.Azure.Batch.ContainerRegistry * Nullable<Microsoft.Azure.Batch.Common.ContainerWorkingDirectory> * System.Collections.Generic.IList<Microsoft.Azure.Batch.ContainerHostBatchBindMountEntry> -> Microsoft.Azure.Batch.TaskContainerSettings
Public Sub New (imageName As String, Optional containerRunOptions As String = Nothing, Optional registry As ContainerRegistry = Nothing, Optional workingDirectory As Nullable(Of ContainerWorkingDirectory) = Nothing, Optional containerHostBatchBindMounts As IList(Of ContainerHostBatchBindMountEntry) = Nothing)

Parameters

imageName
String

The image to use to create the container in which the task will run.

containerRunOptions
String

Additional options to the container create command.

registry
ContainerRegistry

The private registry which contains the container image.

workingDirectory
Nullable<ContainerWorkingDirectory>

The location of the container task working directory.

containerHostBatchBindMounts
IList<ContainerHostBatchBindMountEntry>

Gets or sets the paths you want to mounted to container task.

Applies to