RoleManager<TRole>.GetRoleNameAsync(TRole) 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.
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
The Task that represents the asynchronous operation, containing the name of the
specified role
.