RoleValidator<TRole, TKey> Class
Represents a class that validates roles before they are saved.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.RoleValidator<TRole, TKey>
Microsoft.AspNet.Identity.RoleValidator<TRole>
Syntax
public class RoleValidator<TRole, TKey> : IIdentityValidator<TRole>
where TRole : class, IRole<TKey>
where TKey : object, IEquatable<TKey>
generic<typename TRole, typename TKey>
where TRole : ref class, IRole<TKey>
where TKey : Object, IEquatable<TKey>
public ref class RoleValidator : IIdentityValidator<TRole>
type RoleValidator<'TRole, 'TKey when 'TRole : not struct and IRole<'TKey> when 'TKey : Object and IEquatable<'TKey>> =
class
interface IIdentityValidator<'TRole>
end
Public Class RoleValidator(Of TRole As { Class, IRole(Of TKey) }, TKey As { Object, IEquatable(Of TKey) })
Implements IIdentityValidator(Of TRole)
Type Parameters
- TRole
The type of the role.
- TKey
The type of the key.
Constructors
Name | Description | |
---|---|---|
![]() |
RoleValidator<TRole, TKey>(RoleManager<TRole, TKey>) | Initializes a new instance of the RoleValidator<TRole, TKey> class. |
Methods
Name | Description | |
---|---|---|
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
![]() |
ValidateAsync(TRole) | Asynchronously validates a role before saving. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top