Partager via


HubResource.GetRoleAssignmentResourceFormatAsync Méthode

Définition

Obtient l’attribution de rôle dans le hub.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}
  • Opération IdRoleAssignments_Get
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource>> GetRoleAssignmentResourceFormatAsync (string assignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRoleAssignmentResourceFormatAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource>>
override this.GetRoleAssignmentResourceFormatAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.CustomerInsights.RoleAssignmentResourceFormatResource>>
Public Overridable Function GetRoleAssignmentResourceFormatAsync (assignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleAssignmentResourceFormatResource))

Paramètres

assignmentName
String

Nom de l’attribution de rôle.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

assignmentName est une chaîne vide et devait être non vide.

assignmentName a la valeur null.

S’applique à