Partager via


WebSiteSlotResource.UpdateConnectionStringsSlotAsync Méthode

Définition

Description pour Remplace les chaînes de connexion d’une application.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/connectionstrings
  • IdWebApps_UpdateConnectionStringsSlot d’opération
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))

Paramètres

connectionStrings
ConnectionStringDictionary

Chaînes de connexion de l’application ou de l’emplacement de déploiement. Consultez les exemples.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

connectionStrings a la valeur null.

S’applique à