Partager via


LogProfileResource.UpdateAsync(LogProfilePatch, CancellationToken) Méthode

Définition

Mises à jour un LogProfilesResource existant. Pour mettre à jour d’autres champs, utilisez la méthode CreateOrUpdate.

  • Chemin/abonnements de la demande/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}
  • IdLogProfiles_Update d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.LogProfileResource>> UpdateAsync (Azure.ResourceManager.Monitor.Models.LogProfilePatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Monitor.Models.LogProfilePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.LogProfileResource>>
override this.UpdateAsync : Azure.ResourceManager.Monitor.Models.LogProfilePatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.LogProfileResource>>
Public Overridable Function UpdateAsync (patch As LogProfilePatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LogProfileResource))

Paramètres

patch
LogProfilePatch

Paramètres fournis à l’opération.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

patch a la valeur null.

S’applique à