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

ImportSource 构造函数

定义

重载

ImportSource()

初始化 ImportSource 类的新实例。

ImportSource(String, String, String, ImportSourceCredentials)

初始化 ImportSource 类的新实例。

ImportSource()

初始化 ImportSource 类的新实例。

public ImportSource ();
Public Sub New ()

适用于

ImportSource(String, String, String, ImportSourceCredentials)

初始化 ImportSource 类的新实例。

public ImportSource (string sourceImage, string resourceId = default, string registryUri = default, Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.ImportSourceCredentials credentials = default);
new Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.ImportSource : string * string * string * Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.ImportSourceCredentials -> Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.ImportSource
Public Sub New (sourceImage As String, Optional resourceId As String = Nothing, Optional registryUri As String = Nothing, Optional credentials As ImportSourceCredentials = Nothing)

参数

sourceImage
String

源映像的存储库名称。 按存储库 (“hello-world”) 指定映像。 这将使用“latest”标记。 按标记 ('hello-world:latest') 指定图像。 按基于 sha256 的清单摘要 ('hello-world@sha256:abc123') 指定映像。

resourceId
String

源Azure 容器注册表的资源标识符。

registryUri
String

源注册表的地址 (例如“mcr.microsoft.com”) 。

credentials
ImportSourceCredentials

从注册表 URI 导入时使用的凭据。

适用于