Partilhar via


WebSiteSlotResource.UpdateConnectionStringsSlotAsync 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}/slots/{slot}/config/connectionstrings
  • IdWebApps_UpdateConnectionStringsSlot de operação
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary>> UpdateConnectionStringsSlotAsync (Azure.ResourceManager.AppService.Models.ConnectionStringDictionary connectionStrings, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateConnectionStringsSlotAsync : Azure.ResourceManager.AppService.Models.ConnectionStringDictionary * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary>>
override this.UpdateConnectionStringsSlotAsync : Azure.ResourceManager.AppService.Models.ConnectionStringDictionary * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.ConnectionStringDictionary>>
Public Overridable Function UpdateConnectionStringsSlotAsync (connectionStrings As ConnectionStringDictionary, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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