RoleManager<TRole>.FindByIdAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
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