Compartilhar via


DataProductResource.AddUserRoleAsync Método

Definição

Atribuir função ao produto de dados.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkAnalytics/dataProducts/{dataProductName}/addUserRole
  • Operação IdDataProducts_AddUserRole
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentDetail>> AddUserRoleAsync (Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentCommonProperties body, System.Threading.CancellationToken cancellationToken = default);
abstract member AddUserRoleAsync : Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentCommonProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentDetail>>
override this.AddUserRoleAsync : Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentCommonProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NetworkAnalytics.Models.RoleAssignmentDetail>>
Public Overridable Function AddUserRoleAsync (body As RoleAssignmentCommonProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RoleAssignmentDetail))

Parâmetros

body
RoleAssignmentCommonProperties

O conteúdo da solicitação de ação.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

body é nulo.

Aplica-se a