Partager via


StaticSiteResource.CreateOrUpdateAppSettingsAsync Méthode

Définition

Description pour Crée ou met à jour les paramètres d’application d’un site statique.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/config/appsettings
  • Opération IdStaticSites_CreateOrUpdateStaticSiteAppSettings
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.AppServiceConfigurationDictionary>> CreateOrUpdateAppSettingsAsync (Azure.ResourceManager.AppService.Models.AppServiceConfigurationDictionary appSettings, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAppSettingsAsync : Azure.ResourceManager.AppService.Models.AppServiceConfigurationDictionary * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.AppServiceConfigurationDictionary>>
override this.CreateOrUpdateAppSettingsAsync : Azure.ResourceManager.AppService.Models.AppServiceConfigurationDictionary * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppService.Models.AppServiceConfigurationDictionary>>
Public Overridable Function CreateOrUpdateAppSettingsAsync (appSettings As AppServiceConfigurationDictionary, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AppServiceConfigurationDictionary))

Paramètres

appSettings
AppServiceConfigurationDictionary

Dictionnaire contenant les paramètres d’application de site statique à mettre à jour.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

appSettings a la valeur null.

S’applique à