ApplicationRoleStoreTRoleDeleteAsync Method |
Deletes a role from the store as an asynchronous operation.
Namespace: Kentico.MembershipAssembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax public Task<IdentityResult> DeleteAsync(
TRole role,
CancellationToken cancellationToken
)
Parameters
- role
- Type: TRole
The role to delete from the store. - cancellationToken
- Type: System.ThreadingCancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Return Value
Type:
TaskIdentityResult
A
TaskTResult that represents the
IdentityResult of the asynchronous query.
Implements
IRoleStore.DeleteAsync(UTP, CancellationToken)Exceptions Exception | Condition |
---|
ArgumentNullException | role is null. |
See Also