Share via


UserManagerExtensions Class

 

Represents the extension methods for user manager.

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

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.Identity.UserManagerExtensions

Syntax

public static class UserManagerExtensions
[ExtensionAttribute]
public ref class UserManagerExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type UserManagerExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class UserManagerExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static AccessFailed<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Increments the access failed count for the user.

System_CAPS_pubmethodSystem_CAPS_static AddClaim<TUser, TKey>(UserManager<TUser, TKey>, TKey, Claim)

Adds a user claim.

System_CAPS_pubmethodSystem_CAPS_static AddLogin<TUser, TKey>(UserManager<TUser, TKey>, TKey, UserLoginInfo)

Adds a user login.

System_CAPS_pubmethodSystem_CAPS_static AddPassword<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Adds a user password only if one does not already exist.

System_CAPS_pubmethodSystem_CAPS_static AddToRole<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Adds a user to a role.

System_CAPS_pubmethodSystem_CAPS_static AddToRoles<TUser, TKey>(UserManager<TUser, TKey>, TKey, String[])

Add a user to several roles

System_CAPS_pubmethodSystem_CAPS_static ChangePassword<TUser, TKey>(UserManager<TUser, TKey>, TKey, String, String)

Changes a user password.

System_CAPS_pubmethodSystem_CAPS_static ChangePhoneNumber<TUser, TKey>(UserManager<TUser, TKey>, TKey, String, String)

Changes a phone number using the verification token.

System_CAPS_pubmethodSystem_CAPS_static CheckPassword<TUser, TKey>(UserManager<TUser, TKey>, TUser, String)

Determines whether the password combination is valid for the user.

System_CAPS_pubmethodSystem_CAPS_static ConfirmEmail<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Confirms the user with confirmation token.

System_CAPS_pubmethodSystem_CAPS_static Create<TUser, TKey>(UserManager<TUser, TKey>, TUser)

Creates a user with no password.

System_CAPS_pubmethodSystem_CAPS_static Create<TUser, TKey>(UserManager<TUser, TKey>, TUser, String)

Creates a user and associates it with the given password (if one is provided).

System_CAPS_pubmethodSystem_CAPS_static CreateIdentity<TUser, TKey>(UserManager<TUser, TKey>, TUser, String)

Creates a ClaimsIdentity representing the user.

System_CAPS_pubmethodSystem_CAPS_static Delete<TUser, TKey>(UserManager<TUser, TKey>, TUser)

Delete a user.

System_CAPS_pubmethodSystem_CAPS_static Find<TUser, TKey>(UserManager<TUser, TKey>, String, String)

Returns a user with the specified username and password or null if there is no match.

System_CAPS_pubmethodSystem_CAPS_static Find<TUser, TKey>(UserManager<TUser, TKey>, UserLoginInfo)

Finds a user.

System_CAPS_pubmethodSystem_CAPS_static FindByEmail<TUser, TKey>(UserManager<TUser, TKey>, String)

Finds a user by email.

System_CAPS_pubmethodSystem_CAPS_static FindById<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Finds a user by ID.

System_CAPS_pubmethodSystem_CAPS_static FindByName<TUser, TKey>(UserManager<TUser, TKey>, String)

Finds a user by name.

System_CAPS_pubmethodSystem_CAPS_static GenerateChangePhoneNumberToken<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Generates a token for using to change to a specific phone number for the user.

System_CAPS_pubmethodSystem_CAPS_static GenerateEmailConfirmationToken<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Gets the confirmation token for the user.

System_CAPS_pubmethodSystem_CAPS_static GeneratePasswordResetToken<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Gets the password reset token for the user.

System_CAPS_pubmethodSystem_CAPS_static GenerateTwoFactorToken<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Gets a user token for a factor provider.

System_CAPS_pubmethodSystem_CAPS_static GenerateUserToken<TUser, TKey>(UserManager<TUser, TKey>, String, TKey)

Gets a user token for a specific purpose.

System_CAPS_pubmethodSystem_CAPS_static GetAccessFailedCount<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Returns the number of failed access attempts for the user.

System_CAPS_pubmethodSystem_CAPS_static GetClaims<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Gets a user’s claims.

System_CAPS_pubmethodSystem_CAPS_static GetEmail<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Gets a user's email.

System_CAPS_pubmethodSystem_CAPS_static GetLockoutEnabled<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Returns whether the user allows lockout.

System_CAPS_pubmethodSystem_CAPS_static GetLockoutEndDate<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Returns the user lockout end date.

System_CAPS_pubmethodSystem_CAPS_static GetLogins<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Gets the logins for a user.

System_CAPS_pubmethodSystem_CAPS_static GetPhoneNumber<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Gets a user's phone number.

System_CAPS_pubmethodSystem_CAPS_static GetRoles<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Gets a user's roles.

System_CAPS_pubmethodSystem_CAPS_static GetSecurityStamp<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Gets the current security stamp for a user.

System_CAPS_pubmethodSystem_CAPS_static GetTwoFactorEnabled<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Determines whether two factor is enabled for the user.

System_CAPS_pubmethodSystem_CAPS_static GetValidTwoFactorProviders<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Returns a list of valid two factor providers for a user.

System_CAPS_pubmethodSystem_CAPS_static HasPassword<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Determines whether a user has a password set.

System_CAPS_pubmethodSystem_CAPS_static IsEmailConfirmed<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Determines whether the user's email has been confirmed.

System_CAPS_pubmethodSystem_CAPS_static IsInRole<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Determines whether the user is in the specified role.

System_CAPS_pubmethodSystem_CAPS_static IsLockedOut<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Determines whether the user is locked out.

System_CAPS_pubmethodSystem_CAPS_static IsPhoneNumberConfirmed<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Determines whether the user's phone number has been confirmed.

System_CAPS_pubmethodSystem_CAPS_static NotifyTwoFactorToken<TUser, TKey>(UserManager<TUser, TKey>, TKey, String, String)

Notifies a user with a token from a specific user factor provider.

System_CAPS_pubmethodSystem_CAPS_static RemoveClaim<TUser, TKey>(UserManager<TUser, TKey>, TKey, Claim)

Removes a user claim.

System_CAPS_pubmethodSystem_CAPS_static RemoveFromRole<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Removes a user from a role.

System_CAPS_pubmethodSystem_CAPS_static RemoveFromRoles<TUser, TKey>(UserManager<TUser, TKey>, TKey, String[])

Remove a user from the specified roles.

System_CAPS_pubmethodSystem_CAPS_static RemoveLogin<TUser, TKey>(UserManager<TUser, TKey>, TKey, UserLoginInfo)

Removes a user login.

System_CAPS_pubmethodSystem_CAPS_static RemovePassword<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Associates a login with a user.

System_CAPS_pubmethodSystem_CAPS_static ResetAccessFailedCount<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Resets the access failed count for the user to 0.

System_CAPS_pubmethodSystem_CAPS_static ResetPassword<TUser, TKey>(UserManager<TUser, TKey>, TKey, String, String)

Resets a user's password using a reset password token.

System_CAPS_pubmethodSystem_CAPS_static SendEmail<TUser, TKey>(UserManager<TUser, TKey>, TKey, String, String)

Sends email with supplied subject and body.

System_CAPS_pubmethodSystem_CAPS_static SendSms<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Sends text message using the given message.

System_CAPS_pubmethodSystem_CAPS_static SetEmail<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Sets a user's email.

System_CAPS_pubmethodSystem_CAPS_static SetLockoutEnabled<TUser, TKey>(UserManager<TUser, TKey>, TKey, Boolean)

Sets whether the user allows lockout.

System_CAPS_pubmethodSystem_CAPS_static SetLockoutEndDate<TUser, TKey>(UserManager<TUser, TKey>, TKey, DateTimeOffset)

Sets the user lockout end date.

System_CAPS_pubmethodSystem_CAPS_static SetPhoneNumber<TUser, TKey>(UserManager<TUser, TKey>, TKey, String)

Sets a user's phone number

System_CAPS_pubmethodSystem_CAPS_static SetTwoFactorEnabled<TUser, TKey>(UserManager<TUser, TKey>, TKey, Boolean)

Sets whether a user's two factor is enabled.

System_CAPS_pubmethodSystem_CAPS_static Update<TUser, TKey>(UserManager<TUser, TKey>, TUser)

Updates a user.

System_CAPS_pubmethodSystem_CAPS_static UpdateSecurityStamp<TUser, TKey>(UserManager<TUser, TKey>, TKey)

Generates a new security stamp for a user, used for SignOutEverywhere functionality.

System_CAPS_pubmethodSystem_CAPS_static VerifyChangePhoneNumberToken<TUser, TKey>(UserManager<TUser, TKey>, TKey, String, String)

Determines whether the token is valid for changing the user's phone number.

System_CAPS_pubmethodSystem_CAPS_static VerifyTwoFactorToken<TUser, TKey>(UserManager<TUser, TKey>, TKey, String, String)

Determines whether a user factor token with the specified provider is valid.

System_CAPS_pubmethodSystem_CAPS_static VerifyUserToken<TUser, TKey>(UserManager<TUser, TKey>, TKey, String, String)

Determines whether a user token is valid.

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

Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top