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

ArmContainerInstanceModelFactory.ContainerVolumeMount Method

Definition

public static Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount ContainerVolumeMount(string name = default, string mountPath = default, bool? isReadOnly = default);
static member ContainerVolumeMount : string * string * Nullable<bool> -> Azure.ResourceManager.ContainerInstance.Models.ContainerVolumeMount
Public Shared Function ContainerVolumeMount (Optional name As String = Nothing, Optional mountPath As String = Nothing, Optional isReadOnly As Nullable(Of Boolean) = Nothing) As ContainerVolumeMount

Parameters

name
String

The name of the volume mount.

mountPath
String

The path within the container where the volume should be mounted. Must not contain colon (:).

isReadOnly
Nullable<Boolean>

The flag indicating whether the volume mount is read-only.

Returns

A new ContainerVolumeMount instance for mocking.

Applies to