RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim> Class
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.
Creates a new instance of a persistence store for roles.
generic <typename TRole, typename TKey, typename TUserRole, typename TRoleClaim>
where TRole : IdentityRole<TKey> where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey>gcnew() where TRoleClaim : IdentityRoleClaim<TKey>gcnew()public ref class RoleStoreBase abstract : IDisposable, Microsoft::AspNetCore::Identity::IQueryableRoleStore<TRole>, Microsoft::AspNetCore::Identity::IRoleClaimStore<TRole>, Microsoft::AspNetCore::Identity::IRoleStore<TRole>
public abstract class RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim> : IDisposable, Microsoft.AspNetCore.Identity.IQueryableRoleStore<TRole>, Microsoft.AspNetCore.Identity.IRoleClaimStore<TRole>, Microsoft.AspNetCore.Identity.IRoleStore<TRole> where TRole : IdentityRole<TKey> where TKey : IEquatable<TKey> where TUserRole : IdentityUserRole<TKey>, new() where TRoleClaim : IdentityRoleClaim<TKey>, new()
type RoleStoreBase<'Role, 'Key, 'UserRole, 'RoleClaim (requires 'Role :> IdentityRole<'Key> and 'Key :> IEquatable<'Key> and 'UserRole :> IdentityUserRole<'Key> and 'UserRole : (new : unit -> 'UserRole) and 'RoleClaim :> IdentityRoleClaim<'Key> and 'RoleClaim : (new : unit -> 'RoleClaim))> = class
interface IQueryableRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
interface IRoleStore<'Role (requires 'Role :> IdentityRole<'Key>)>
interface IDisposable
interface IRoleClaimStore<'Role (requires 'Role :> IdentityRole<'Key>)>
Public MustInherit Class RoleStoreBase(Of TRole, TKey, TUserRole, TRoleClaim)
Implements IDisposable, IQueryableRoleStore(Of TRole), IRoleClaimStore(Of TRole), IRoleStore(Of TRole)
Type Parameters
- TRole
The type of the class representing a role.
- TKey
The type of the primary key for a role.
- TUserRole
The type of the class representing a user role.
- TRoleClaim
The type of the class representing a role claim.
- Inheritance
-
RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>
- Implements
Constructors
RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>(IdentityErrorDescriber) |
Constructs a new instance of RoleStoreBase<TRole,TKey,TUserRole,TRoleClaim>. |
Properties
ErrorDescriber |
Gets or sets the IdentityErrorDescriber for any error that occurred with the current operation. |
Roles |
A navigation property for the roles the store contains. |
Methods
AddClaimAsync(TRole, Claim, CancellationToken) |
Adds the |
ConvertIdFromString(String) |
Converts the provided |
ConvertIdToString(TKey) |
Converts the provided |
CreateAsync(TRole, CancellationToken) |
Creates a new role in a store as an asynchronous operation. |
CreateRoleClaim(TRole, Claim) |
Creates a entity representing a role claim. |
DeleteAsync(TRole, CancellationToken) |
Deletes a role from the store as an asynchronous operation. |
Dispose() |
Dispose the stores |
FindByIdAsync(String, CancellationToken) |
Finds the role who has the specified ID as an asynchronous operation. |
FindByNameAsync(String, CancellationToken) |
Finds the role who has the specified normalized name as an asynchronous operation. |
GetClaimsAsync(TRole, CancellationToken) |
Get the claims associated with the specified |
GetNormalizedRoleNameAsync(TRole, CancellationToken) |
Get a role's normalized name as an asynchronous operation. |
GetRoleIdAsync(TRole, CancellationToken) |
Gets the ID for a role from the store as an asynchronous operation. |
GetRoleNameAsync(TRole, CancellationToken) |
Gets the name of a role from the store as an asynchronous operation. |
RemoveClaimAsync(TRole, Claim, CancellationToken) |
Removes the |
SetNormalizedRoleNameAsync(TRole, String, CancellationToken) |
Set a role's normalized name as an asynchronous operation. |
SetRoleNameAsync(TRole, String, CancellationToken) |
Sets the name of a role in the store as an asynchronous operation. |
ThrowIfDisposed() |
Throws if this class has been disposed. |
UpdateAsync(TRole, CancellationToken) |
Updates a role in a store as an asynchronous operation. |