UserManagerExtensions Class
Extension methods for IUserManager
Inheritance Hierarchy
System.Object
Microsoft.AspNet.Identity.UserManagerExtensions
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class UserManagerExtensions
'Usage
public static class UserManagerExtensions
[ExtensionAttribute]
public ref class UserManagerExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type UserManagerExtensions = class end
public final class UserManagerExtensions
The UserManagerExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
AddClaim<TUser> | Add a user claim |
![]() ![]() |
AddLogin<TUser> | Sync extension |
![]() ![]() |
AddPassword<TUser> | Add a user password only if one does not already exist |
![]() ![]() |
AddToRole<TUser> | Add a user to a role |
![]() ![]() |
ChangePassword<TUser> | Change a user password |
![]() ![]() |
Create<TUser>(UserManager<TUser>, TUser) | Create a user with no password |
![]() ![]() |
Create<TUser>(UserManager<TUser>, TUser, String) | Create a user and associates it with the given password (if one is provided) |
![]() ![]() |
CreateIdentity<TUser> | Creates a ClaimsIdentity representing the user |
![]() ![]() |
Find<TUser>(UserManager<TUser>, UserLoginInfo) | Sync extension |
![]() ![]() |
Find<TUser>(UserManager<TUser>, String, String) | Return a user with the specified username and password or null if there is no match. |
![]() ![]() |
FindById<TUser> | Find a user by id |
![]() ![]() |
FindByName<TUser> | Find a user by name |
![]() ![]() |
GetClaims<TUser> | Get a users's claims |
![]() ![]() |
GetLogins<TUser> | Gets the logins for a user. |
![]() ![]() |
GetRoles<TUser> | Get a users's roles |
![]() ![]() |
HasPassword<TUser> | Returns true if a user has a password set |
![]() ![]() |
IsInRole<TUser> | Returns true if the user is in the specified role |
![]() ![]() |
RemoveClaim<TUser> | Remove a user claim |
![]() ![]() |
RemoveFromRole<TUser> | Remove a user from a role. |
![]() ![]() |
RemoveLogin<TUser> | Remove a user login |
![]() ![]() |
RemovePassword<TUser> | Associate a login with a user |
![]() ![]() |
Update<TUser> | Update an user |
![]() ![]() |
UpdateSecurityStamp<TUser> | Generate a new security stamp for a user, used for SignOutEverywhere functionality |
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.