RoleManager<TRole>.GetRoleIdAsync(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 ID of the specified role
.
public:
virtual System::Threading::Tasks::Task<System::String ^> ^ GetRoleIdAsync(TRole role);
public virtual System.Threading.Tasks.Task<string> GetRoleIdAsync (TRole role);
abstract member GetRoleIdAsync : 'Role -> System.Threading.Tasks.Task<string>
override this.GetRoleIdAsync : 'Role -> System.Threading.Tasks.Task<string>
Public Overridable Function GetRoleIdAsync (role As TRole) As Task(Of String)
Parameters
- role
- TRole
The role whose ID should be retrieved.
Returns
The Task that represents the asynchronous operation, containing the ID of the
specified role
.