Click or drag to resize
UserStore Methods

The UserStore type exposes the following members.

Methods
  NameDescription
Public methodAddLoginAsync
Adds external login to user.
Public methodAddToRoleAsync
Adds User to Role.
Public methodCreateAsync
Inserts new user to the database.
Public methodDeleteAsync
Deletes the user.
Public methodDispose
Performs tasks to dispose the user store.
Protected methodDispose(Boolean)
Disposes the user store.
Public methodFindAsync
Returns user based on given external login.
Public methodFindByEmailAsync
Returns the user associated with the given email.
Public methodFindByIdAsync
Finds the user by user's ID.
Public methodFindByNameAsync
Finds the user by user's username.
Public methodGetAccessFailedCountAsync
Returns the current number of failed access attempts.
Public methodGetEmailAsync
Gets the user email.
Public methodGetEmailConfirmedAsync
Returns true if the user email is confirmed.
Public methodGetLockoutEnabledAsync
Returns whether the user can be locked out.
Public methodGetLockoutEndDateAsync
Returns the DateTimeOffset that represents the end of the user's lockout, any time in the past should be considered not locked out.
Public methodGetLoginsAsync
Returns all external logins of user.
Public methodGetPasswordHashAsync
Gets the password hash for the user.
Public methodGetRolesAsync
Returns all role names for the given user.
Public methodGetSecurityStampAsync
Returns user's security stamp.
Public methodGetTwoFactorEnabledAsync
Returns whether two factor authentication is enabled for the user.
Public methodHasPasswordAsync
Returns true if the user has the password set.
Public methodIncrementAccessFailedCountAsync
Used to record when an attempt to access the user has failed.
Public methodIsInRoleAsync
Checks whether user is in role with given role name.
Public methodRemoveFromRoleAsync
Removes User from Role.
Public methodRemoveLoginAsync
Removes external login to user.
Public methodResetAccessFailedCountAsync
Used to reset the access failed count, typically after the account is successfully accessed.
Public methodSetEmailAsync
Sets the user email.
Public methodSetEmailConfirmedAsync
Enables user if her email was confirmed.
Public methodSetLockoutEnabledAsync
Sets whether the user can be locked out.
Public methodSetLockoutEndDateAsync
Locks a user out until the specified end date (set to a past date, to unlock a user).
Public methodSetPasswordHashAsync
Sets the password hash for the user.
Public methodSetSecurityStampAsync
Sets user's security stamp.
Public methodSetTwoFactorEnabledAsync
Sets whether two factor authentication is enabled for the user.
Public methodUpdateAsync
Updates a user.
Top
See Also