Partilhar via


WebSiteResource.UpdateConnectionStrings Método

Definição

Descrição de Substitui as cadeias de conexão de um aplicativo.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/connectionstrings
  • IdWebApps_UpdateConnectionStrings de operação
public virtual Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary> UpdateConnectionStrings (Azure.ResourceManager.AppService.Models.ConnectionStringDictionary connectionStrings, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateConnectionStrings : Azure.ResourceManager.AppService.Models.ConnectionStringDictionary * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary>
override this.UpdateConnectionStrings : Azure.ResourceManager.AppService.Models.ConnectionStringDictionary * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary>
Public Overridable Function UpdateConnectionStrings (connectionStrings As ConnectionStringDictionary, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ConnectionStringDictionary)

Parâmetros

connectionStrings
ConnectionStringDictionary

Cadeias de conexão do aplicativo ou slot de implantação. Confira o exemplo.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

connectionStrings é nulo.

Aplica-se a