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
Public method RoleValidator<TRole> Constructor

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method 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.

See Also

Reference

Microsoft.AspNet.Identity Namespace