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

WebSiteResource.UpdateConnectionStringsAsync 方法

定义

替换应用的连接字符串的说明。

  • 请求路径/订阅/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings
  • 操作IdWebApps_UpdateConnectionStrings
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary>> UpdateConnectionStringsAsync (Azure.ResourceManager.AppService.Models.ConnectionStringDictionary connectionStrings, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateConnectionStringsAsync : Azure.ResourceManager.AppService.Models.ConnectionStringDictionary * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary>>
override this.UpdateConnectionStringsAsync : Azure.ResourceManager.AppService.Models.ConnectionStringDictionary * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary>>
Public Overridable Function UpdateConnectionStringsAsync (connectionStrings As ConnectionStringDictionary, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConnectionStringDictionary))

参数

connectionStrings
ConnectionStringDictionary

应用或部署槽的连接字符串。 请参阅示例。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

connectionStrings 为 null。

适用于