Partager via


RoleAssignmentResourceFormatResource.UpdateAsync Méthode

Définition

Crée ou met à jour une attribution de rôle dans le hub.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}
  • IdRoleAssignments_CreateOrUpdate d’opération
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource>> UpdateAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatData data, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource>>
override this.UpdateAsync : Azure.WaitUntil * Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource>>
Public Overridable Function UpdateAsync (waitUntil As WaitUntil, data As RoleAssignmentResourceFormatData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of RoleAssignmentResourceFormatResource))

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.

data
RoleAssignmentResourceFormatData

Paramètres fournis à l’opération CreateOrUpdate RoleAssignment.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

data a la valeur null.

S’applique à