RoleManager<TRole>.FindByIdAsync(String) Method

Definition

Finds the role associated with the specified roleId if any.

public:
 virtual System::Threading::Tasks::Task<TRole> ^ FindByIdAsync(System::String ^ roleId);
public virtual System.Threading.Tasks.Task<TRole> FindByIdAsync (string roleId);
abstract member FindByIdAsync : string -> System.Threading.Tasks.Task<'Role (requires 'Role : null)>
override this.FindByIdAsync : string -> System.Threading.Tasks.Task<'Role (requires 'Role : null)>
Public Overridable Function FindByIdAsync (roleId As String) As Task(Of TRole)

Parameters

roleId
String

The role ID whose role should be returned.

Returns

Task<TRole>

The Task that represents the asynchronous operation, containing the role associated with the specified roleId

Applies to