AuthorizationRoleDefinitionCollection.ExistsAsync Método

Definição

Verifica se o recurso existe no azure.

  • Caminho da Solicitação/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionId}
  • Operação IdRoleDefinitions_Get
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync (Azure.Core.ResourceIdentifier roleDefinitionId, System.Threading.CancellationToken cancellationToken = default);
abstract member ExistsAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
override this.ExistsAsync : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<bool>>
Public Overridable Function ExistsAsync (roleDefinitionId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of Boolean))

Parâmetros

roleDefinitionId
ResourceIdentifier

A ID da definição de função.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

roleDefinitionId é nulo.

Aplica-se a