| ApplicationRoleStoreTRoleFindByIdAsync Method (String, CancellationToken) | 
            Finds the role who has the specified ID as an asynchronous operation.
            
 
Namespace: Kentico.MembershipAssembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntaxpublic Task<TRole> FindByIdAsync(
	string roleId,
	CancellationToken cancellationToken
)
Parameters
- roleId
 - Type: SystemString
The role ID to look for. - cancellationToken
 - Type: System.ThreadingCancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled. 
Return Value
Type: 
TaskTRole
            A 
TaskTResult that result of the look up.
            
Implements
IRoleStore.FindByIdAsync(String, CancellationToken)
Exceptions| Exception | Condition | 
|---|
| ArgumentException | roleId is empty or non integer. | 
See Also