ProfileResourceFormatCollection.CreateOrUpdateAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un profil dans un hub ou met à jour un profil existant.
- Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles/{profileName}
- IdProfiles_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.ProfileResourceFormatResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string profileName, Azure.ResourceManager.CustomerInsights.ProfileResourceFormatData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.ProfileResourceFormatData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.ProfileResourceFormatResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.CustomerInsights.ProfileResourceFormatData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.ProfileResourceFormatResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, profileName As String, data As ProfileResourceFormatData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ProfileResourceFormatResource))
Paramètres
- waitUntil
- WaitUntil
Completed si la méthode doit attendre pour retourner jusqu’à ce que l’opération de longue durée soit terminée sur le service ; Started si elle doit être retournée après le démarrage de l’opération. Pour plus d’informations sur les opérations de longue durée, consultez Exemples d’opérations de Long-Running Azure.Core.
- profileName
- String
Nom du profil.
Paramètres fournis à l’opération de type de profil de création/suppression.
- cancellationToken
- CancellationToken
Jeton d’annulation à utiliser.
Retours
Exceptions
profileName
est une chaîne vide et devait être non vide.
profileName
ou data
est null.
S’applique à
Azure SDK for .NET