Share via


RoleManager<TRole>.RoleValidator Property

Used to validate roles before persisting changes

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

'Declaration
Public Property RoleValidator As IIdentityValidator(Of TRole)
    Get 
    Set
'Usage
Dim instance As RoleManager 
Dim value As IIdentityValidator(Of TRole)

value = instance.RoleValidator

instance.RoleValidator = value
public IIdentityValidator<TRole> RoleValidator { get; set; }
public:
property IIdentityValidator<TRole>^ RoleValidator {
    IIdentityValidator<TRole>^ get ();
    void set (IIdentityValidator<TRole>^ value);
}
member RoleValidator : IIdentityValidator<'TRole> with get, set
function get RoleValidator () : IIdentityValidator<TRole>
function set RoleValidator (value : IIdentityValidator<TRole>)

Property Value

Type: Microsoft.AspNet.Identity.IIdentityValidator<TRole>

See Also

Reference

RoleManager<TRole> Class

Microsoft.AspNet.Identity Namespace