Partilhar via


IRoleDefinitionsOperations.DeleteWithHttpMessagesAsync Método

Definição

Elimina uma definição de função.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Authorization.Models.RoleDefinition>> DeleteWithHttpMessagesAsync (string scope, string roleDefinitionId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Authorization.Models.RoleDefinition>>
Public Function DeleteWithHttpMessagesAsync (scope As String, roleDefinitionId As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of RoleDefinition))

Parâmetros

scope
String

O âmbito da definição de função.

roleDefinitionId
String

O ID da definição de função a eliminar.

customHeaders
Dictionary<String,List<String>>

Os cabeçalhos que serão adicionados ao pedido.

cancellationToken
CancellationToken

O token de cancelamento.

Devoluções

Exceções

Gerado quando a operação devolveu um código de estado inválido

Gerado quando a operação devolveu um código de estado inválido

Lançada quando não é possível anular a serialização da resposta

Acionado quando um parâmetro necessário é nulo

Aplica-se a