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

FabricClient.ClusterManagementClient.RemoveClusterPackage 方法

定义

从映像存储中删除群集清单文件和/或 Service Fabric 代码包。

public void RemoveClusterPackage (string imageStoreConnectionString, string clusterManifestPathInImageStore, string codePackagePathInImageStore);
member this.RemoveClusterPackage : string * string * string -> unit
Public Sub RemoveClusterPackage (imageStoreConnectionString As String, clusterManifestPathInImageStore As String, codePackagePathInImageStore As String)

参数

imageStoreConnectionString
String

映像存储的连接字符串,应与目标群集的群集清单中找到的“ImageStoreConnectionString”设置值匹配。 在本地群集中,该值由群集管理员在初始部署期间选择。 在通过 Azure 资源管理器创建的 Azure 群集中,此值为“fabric:ImageStore”。 可以通过查看 返回 GetClusterManifestAsync()的群集清单内容来检查映像存储连接字符串值。

clusterManifestPathInImageStore
String

在 期间 CopyClusterPackage(String, String, String, String, String)指定的映像存储中群集清单文件的相对路径。

codePackagePathInImageStore
String

在 期间 CopyClusterPackage(String, String, String, String, String)指定的映像存储中 Service Fabric 代码包的相对路径。

例外

访问映像存储上的文件时出错。

ImageStoreIOException:与映像存储通信时出现 IO 错误。

请求已超时,但系统可能已接受处理。

注解

clusterManifestPathInImageStore 或 codePackagePathInImageStore 参数可以是 null。 但是,这两个都不能是 null

适用于