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

WebSiteSlotResource.ApplySlotConfigurationSlot 方法

定义

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

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

参数

slotSwapEntity
CsmSlotEntity

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

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

slotSwapEntity 为 null。

适用于