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

Extensions.DeleteComposeDeploymentAsync 方法

定义

重载

DeleteComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, DeleteComposeDeploymentDescription)

从群集中删除 compose 部署实例。

DeleteComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, DeleteComposeDeploymentDescription, TimeSpan)

从群集中删除撰写部署。

DeleteComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, DeleteComposeDeploymentDescription, TimeSpan, CancellationToken)

从群集中删除撰写部署。

DeleteComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, DeleteComposeDeploymentDescription)

从群集中删除 compose 部署实例。

public static System.Threading.Tasks.Task DeleteComposeDeploymentAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.DeleteComposeDeploymentDescription description);
static member DeleteComposeDeploymentAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.DeleteComposeDeploymentDescription -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteComposeDeploymentAsync (client As FabricClient.ComposeDeploymentClient, description As DeleteComposeDeploymentDescription) As Task

参数

description
DeleteComposeDeploymentDescription

确定 DeleteComposeDeploymentDescription 应删除哪个撰写部署的 。

返回

表示 Task 操作的 。

例外

对象 FabricClient 处于关闭状态。 释放正在使用的对象 FabricClient 并实例化新 FabricClient 对象。

ApplicationUpgradeInProgress:正在升级应用程序。

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

请求在超时到期前已取消,但系统可能已接受处理请求。

注解

所有撰写部署状态都将丢失,在删除撰写部署后无法恢复。

适用于

DeleteComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, DeleteComposeDeploymentDescription, TimeSpan)

从群集中删除撰写部署。

public static System.Threading.Tasks.Task DeleteComposeDeploymentAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.DeleteComposeDeploymentDescription description, TimeSpan timeout);
static member DeleteComposeDeploymentAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.DeleteComposeDeploymentDescription * TimeSpan -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteComposeDeploymentAsync (client As FabricClient.ComposeDeploymentClient, description As DeleteComposeDeploymentDescription, timeout As TimeSpan) As Task

参数

description
DeleteComposeDeploymentDescription

确定 DeleteComposeDeploymentDescription 应删除哪个撰写部署的 。

timeout
TimeSpan

定义系统在返回 System.TimeoutException 之前允许此操作继续的最长时间。

返回

表示 Task 操作的 。

例外

对象 FabricClient 处于关闭状态。 释放正在使用的对象 FabricClient 并实例化新 FabricClient 对象。

ApplicationUpgradeInProgress:正在升级应用程序。

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

请求在超时到期前已取消,但系统可能已接受处理请求。

注解

删除应用程序后,所有应用程序状态都将丢失,并且无法恢复。

适用于

DeleteComposeDeploymentAsync(FabricClient+ComposeDeploymentClient, DeleteComposeDeploymentDescription, TimeSpan, CancellationToken)

从群集中删除撰写部署。

public static System.Threading.Tasks.Task DeleteComposeDeploymentAsync (this System.Fabric.FabricClient.ComposeDeploymentClient client, Microsoft.ServiceFabric.Preview.Client.Description.DeleteComposeDeploymentDescription description, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
static member DeleteComposeDeploymentAsync : System.Fabric.FabricClient.ComposeDeploymentClient * Microsoft.ServiceFabric.Preview.Client.Description.DeleteComposeDeploymentDescription * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteComposeDeploymentAsync (client As FabricClient.ComposeDeploymentClient, description As DeleteComposeDeploymentDescription, timeout As TimeSpan, cancellationToken As CancellationToken) As Task

参数

description
DeleteComposeDeploymentDescription

确定 DeleteComposeDeploymentDescription 应删除哪个撰写部署的 。

timeout
TimeSpan

定义系统在返回 System.TimeoutException 之前允许此操作继续的最长时间。

cancellationToken
CancellationToken

CancellationToken操作正在观测的 。 它可用于传播应取消操作的通知。

返回

表示 Task 操作的 。

例外

对象 FabricClient 处于关闭状态。 释放正在使用的对象 FabricClient 并实例化新 FabricClient 对象。

ApplicationUpgradeInProgress:正在升级应用程序。

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

请求在超时到期前已取消,但系统可能已接受处理请求。

注解

删除应用程序后,所有应用程序状态都将丢失,并且无法恢复。

适用于