KeyVaultAccessControlClient.DeleteRoleAssignmentAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Delete the specified role assignment.
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteRoleAssignmentAsync (Azure.Security.KeyVault.Administration.KeyVaultRoleScope roleScope, string roleAssignmentName, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteRoleAssignmentAsync : Azure.Security.KeyVault.Administration.KeyVaultRoleScope * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteRoleAssignmentAsync : Azure.Security.KeyVault.Administration.KeyVaultRoleScope * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteRoleAssignmentAsync (roleScope As KeyVaultRoleScope, roleAssignmentName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- roleScope
- KeyVaultRoleScope
The scope of the role assignment.
- roleAssignmentName
- String
The name of the role assignment to get.
- cancellationToken
- CancellationToken
A CancellationToken controlling the request lifetime.
Returns
A Task<TResult> containing the result of the asynchronous operation.
Exceptions
The server returned an error. See Message for details returned from the server.
roleAssignmentName
is null.
roleAssignmentName
is empty.
Applies to
Azure SDK for .NET