RoleValidator<TRole> 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> : RoleValidator<TRole, string>
where TRole : class, IRole<string>
generic<typename TRole>
where TRole : ref class, IRole<String^>
public ref class RoleValidator : RoleValidator<TRole, String^>
type RoleValidator<'TRole when 'TRole : not struct and IRole<string>> =
class
inherit RoleValidator<'TRole, string>
end
Public Class RoleValidator(Of TRole As { Class, IRole(Of String) })
Inherits RoleValidator(Of TRole, String)
Type Parameters
- TRole
The type of the role.
Constructors
Name | Description | |
---|---|---|
![]() |
RoleValidator<TRole>(RoleManager<TRole, String>) | Initializes a new instance of the RoleValidator<TRole> 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.(Inherited from RoleValidator<TRole, TKey>.) |
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