RoleValidator<TRole> Class
Validates roles before they are saved to an IRoleStore
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.RoleValidator<TRole>
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Public Class RoleValidator(Of TRole As IRole) _
Implements IIdentityValidator(Of TRole)
'Usage
Dim instance As RoleValidator(Of TRole)
public class RoleValidator<TRole> : IIdentityValidator<TRole>
where TRole : IRole
generic<typename TRole>
where TRole : IRole
public ref class RoleValidator : IIdentityValidator<TRole>
type RoleValidator<'TRole when 'TRole : IRole> =
class
interface IIdentityValidator<'TRole>
end
JScript does not support generic types and methods.
Type Parameters
- TRole
The RoleValidator<TRole> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
RoleValidator<TRole> | Constructor |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
ValidateAsync | Validates a role before saving |
Top
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.