Click or drag to resize
ApplicationRoleStoreTRoleFindByIdAsync Method (Int32, CancellationToken)
Finds the role who has the specified ID as an asynchronous operation.

Namespace: Kentico.Membership
Assembly: Kentico.Membership (in Kentico.Membership.dll) Version: 13.0.131
Syntax
C#
public Task<TRole> FindByIdAsync(
	int roleId,
	CancellationToken cancellationToken
)

Parameters

roleId
Type: SystemInt32
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.
See Also