RoleManager<TRole>.GetClaimsAsync(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 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
.