RoleManager<TRole>.GetRoleIdAsync(TRole) Method

Definition

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

Task<String>

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

Applies to