RoleManager<TRole>.GetRoleNameAsync(TRole) Method

Definition

Gets the name of the specified role.

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

Parameters

role
TRole

The role whose name should be retrieved.

Returns

Task<String>

The Task that represents the asynchronous operation, containing the name of the specified role.

Applies to