ApplicationRoleStoreTRoleGetRoleNameAsync Method |
Gets the name of a role from the store as an asynchronous operation.
Namespace: Kentico.MembershipAssembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntaxpublic Task<string> GetRoleNameAsync(
TRole role,
CancellationToken cancellationToken
)
Parameters
- role
- Type: TRole
The role whose name should be returned. - cancellationToken
- Type: System.ThreadingCancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Return Value
Type:
TaskString
A
TaskTResult that contains the name of the role.
Implements
IRoleStore.GetRoleNameAsync(UTP, CancellationToken)
ExceptionsException | Condition |
---|
ArgumentNullException | role is null. |
See Also