IUserRoleStore<TUser> Interface

Interface that maps users to login providers, i.e. Google, Facebook, Twitter, Microsoft

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

Syntax

'Declaration
Public Interface IUserRoleStore(Of TUser As IUser) _
    Inherits IUserStore(Of TUser), IDisposable
'Usage
Dim instance As IUserRoleStore(Of TUser)
public interface IUserRoleStore<TUser> : IUserStore<TUser>, 
    IDisposable 
where TUser : IUser
generic<typename TUser>
where TUser : IUser 
public interface class IUserRoleStore : IUserStore<TUser>, 
    IDisposable
type IUserRoleStore<'TUser when 'TUser : IUser> =  
    interface 
        interface IUserStore<'TUser>
        interface IDisposable 
    end
JScript does not support generic types and methods.

Type Parameters

  • TUser

The IUserRoleStore<TUser> type exposes the following members.

Methods

  Name Description
Public method AddToRoleAsync Adds a user to role
Public method CreateAsync Insert a new user (Inherited from IUserStore<TUser>.)
Public method DeleteAsync Delete a user (Inherited from IUserStore<TUser>.)
Public method Dispose (Inherited from IDisposable.)
Public method FindByIdAsync Finds a user (Inherited from IUserStore<TUser>.)
Public method FindByNameAsync Find a user by name (Inherited from IUserStore<TUser>.)
Public method GetRolesAsync Returns the roles for this user
Public method IsInRoleAsync Returns true if a user is in a role
Public method RemoveFromRoleAsync Removes the role for the user
Public method UpdateAsync Update a user (Inherited from IUserStore<TUser>.)

Top

See Also

Reference

Microsoft.AspNet.Identity Namespace