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

WebSiteResource.ApplySlotConfigToProductionAsync 方法

定义

的说明 将配置设置从目标槽应用到当前槽。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/applySlotConfig
  • 操作IdWebApps_ApplySlotConfigToProduction
public virtual System.Threading.Tasks.Task<Azure.Response> ApplySlotConfigToProductionAsync (Azure.ResourceManager.AppService.Models.CsmSlotEntity slotSwapEntity, System.Threading.CancellationToken cancellationToken = default);
abstract member ApplySlotConfigToProductionAsync : Azure.ResourceManager.AppService.Models.CsmSlotEntity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.ApplySlotConfigToProductionAsync : Azure.ResourceManager.AppService.Models.CsmSlotEntity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function ApplySlotConfigToProductionAsync (slotSwapEntity As CsmSlotEntity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

参数

slotSwapEntity
CsmSlotEntity

包含目标槽名称的 JSON 对象。 请参阅示例。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

slotSwapEntity 为 null。

适用于