IRoleStore<TRole>.GetRoleIdAsync(TRole, CancellationToken) 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 for a role from the store as an asynchronous operation.
public:
System::Threading::Tasks::Task<System::String ^> ^ GetRoleIdAsync(TRole role, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<string> GetRoleIdAsync (TRole role, System.Threading.CancellationToken cancellationToken);
abstract member GetRoleIdAsync : 'Role * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function GetRoleIdAsync (role As TRole, cancellationToken As CancellationToken) As Task(Of String)
Parameters
- role
- TRole
The role whose ID should be returned.
- cancellationToken
- CancellationToken
The CancellationToken used to propagate notifications that the operation should be canceled.
Returns
A Task<TResult> that contains the ID of the role.