Dela via


RoleManager<TRole>.GetClaimsAsync(TRole) Method

Definition

Gets a list of claims associated with the specified role.

public:
 virtual System::Threading::Tasks::Task<System::Collections::Generic::IList<System::Security::Claims::Claim ^> ^> ^ GetClaimsAsync(TRole role);
public virtual System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> GetClaimsAsync (TRole role);
abstract member GetClaimsAsync : 'Role -> System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>>
override this.GetClaimsAsync : 'Role -> System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>>
Public Overridable Function GetClaimsAsync (role As TRole) As Task(Of IList(Of Claim))

Parameters

role
TRole

The role whose claims should be returned.

Returns

The Task that represents the asynchronous operation, containing the list of Claims associated with the specified role.

Applies to