Share via


UserStore Classe

Definizione

Rappresenta una nuova istanza di un archivio di persistenza per gli utenti, usando l'implementazione predefinita di IdentityUser<TKey> con una stringa come chiave primaria.

public ref class UserStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::UserStore<Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUser<System::String ^> ^>
public ref class UserStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::UserStore<Microsoft::AspNetCore::Identity::IdentityUser<System::String ^> ^>
public class UserStore : Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUser<string>>
public class UserStore : Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<Microsoft.AspNetCore.Identity.IdentityUser<string>>
type UserStore = class
    inherit UserStore<IdentityUser<string>>
Public Class UserStore
Inherits UserStore(Of IdentityUser(Of String))
Ereditarietà
Ereditarietà

Costruttori

UserStore(DbContext, IdentityErrorDescriber)

Costruisce una nuova istanza di UserStore.

Proprietà

AutoSaveChanges

Ottiene o imposta un flag che indica se le modifiche devono essere mantenute dopo la chiamata CreateAsync, UpdateAsync e DeleteAsync.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
Context

Ottiene il contesto del database per questo archivio.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
ErrorDescriber

Ottiene o imposta l'oggetto IdentityErrorDescriber per qualsiasi errore che si è verificato con l'operazione corrente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
Users

Proprietà di spostamento per gli utenti che l'archivio contiene.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)

Metodi

AddClaimsAsync(TUser, IEnumerable<Claim>, CancellationToken)

Aggiunge l'oggetto specificato all'oggetto claims specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
AddLoginAsync(TUser, UserLoginInfo, CancellationToken)

Aggiunge l'oggetto specificato all'oggetto login specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
AddToRoleAsync(TUser, String, CancellationToken)

Aggiunge l'oggetto specificato normalizedRoleName all'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
AddUserTokenAsync(TUserToken)

Aggiungere un nuovo token utente.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
AddUserTokenAsync(TUserToken)

Aggiungere un nuovo token utente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
ConvertIdFromString(String)

Converte l'oggetto fornito id in un oggetto chiave fortemente tipizzato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
ConvertIdToString(TKey)

Converte l'oggetto fornito id nella relativa rappresentazione di stringa.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
ConvertIdToString(TKey)

Converte l'oggetto fornito id nella relativa rappresentazione di stringa.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
CountCodesAsync(TUser, CancellationToken)

Restituisce il numero di codice di ripristino ancora valido per un utente.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
CreateAsync(TUser, CancellationToken)

Crea l'oggetto specificato user nell'archivio utenti.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
CreateUserClaim(TUser, Claim)

Chiamato per creare una nuova istanza di un IdentityUserClaim<TKey>oggetto .

(Ereditato da UserStore<TUser,TRole,TContext,TKey>)
CreateUserLogin(TUser, UserLoginInfo)

Chiamato per creare una nuova istanza di un IdentityUserLogin<TKey>oggetto .

(Ereditato da UserStore<TUser,TRole,TContext,TKey>)
CreateUserRole(TUser, TRole)

Chiamato per creare una nuova istanza di un IdentityUserRole<TKey>oggetto .

(Ereditato da UserStore<TUser,TRole,TContext,TKey>)
CreateUserToken(TUser, String, String, String)

Chiamato per creare una nuova istanza di un IdentityUserToken<TKey>oggetto .

(Ereditato da UserStore<TUser,TRole,TContext,TKey>)
DeleteAsync(TUser, CancellationToken)

Elimina l'oggetto specificato user dall'archivio utenti.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
Dispose()

Elimina l'archivio

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindByEmailAsync(String, CancellationToken)

Ottiene l'utente, se presente, associato all'indirizzo di posta elettronica normalizzato specificato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindByIdAsync(String, CancellationToken)

Trova e restituisce un utente, se presente, che ha l'oggetto specificato userId.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindByLoginAsync(String, String, CancellationToken)

Recupera l'utente associato al provider di accesso e alla chiave del provider di accesso specificati.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindByNameAsync(String, CancellationToken)

Trova e restituisce un utente, se presente, che ha il nome utente normalizzato specificato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindRoleAsync(String, CancellationToken)

Restituisce un ruolo con il nome normalizzato se esiste.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindTokenAsync(TUser, String, String, CancellationToken)

Trovare un token utente se esiste.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindUserAsync(TKey, CancellationToken)

Restituisce un utente con l'id utente corrispondente se esiste.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
FindUserAsync(TKey, CancellationToken)

Restituisce un utente con l'id utente corrispondente se esiste.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindUserLoginAsync(String, String, CancellationToken)

Restituire un account di accesso utente con provider, providerKey se esiste.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindUserLoginAsync(TKey, String, String, CancellationToken)

Restituisce un account di accesso utente con l'id utente, il provider, providerKey, se presente.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
FindUserLoginAsync(TKey, String, String, CancellationToken)

Restituisce un account di accesso utente con l'id utente, il provider, providerKey, se presente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindUserRoleAsync(TKey, TKey, CancellationToken)

Restituisce un ruolo utente per userId e roleId se esistente.

(Ereditato da UserStoreBase<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
FindUserRoleAsync(TKey, TKey, CancellationToken)

Restituisce un ruolo utente per userId e roleId se esistente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetAccessFailedCountAsync(TUser, CancellationToken)

Recupera il numero di accesso non riuscito corrente per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetAuthenticatorKeyAsync(TUser, CancellationToken)

Ottenere la chiave di autenticazione per l'oggetto specificato user.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
GetClaimsAsync(TUser, CancellationToken)

Ottenere le attestazioni associate all'oggetto specificato user come operazione asincrona.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetEmailAsync(TUser, CancellationToken)

Ottiene l'indirizzo di posta elettronica per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetEmailConfirmedAsync(TUser, CancellationToken)

Ottiene un flag che indica se l'indirizzo di posta elettronica per l'oggetto specificato user è stato verificato, true se l'indirizzo di posta elettronica è verificato in caso contrario false.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetLockoutEnabledAsync(TUser, CancellationToken)

Recupera un flag che indica se il blocco utente può essere abilitato per l'utente specificato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetLockoutEndDateAsync(TUser, CancellationToken)

Ottiene l'ultimo blocco dell'utente DateTimeOffset scaduto, se presente. Qualsiasi momento in passato deve essere indica che un utente non è bloccato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetLoginsAsync(TUser, CancellationToken)

Recupera gli account di accesso associati per l'oggetto specificato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetNormalizedEmailAsync(TUser, CancellationToken)

Restituisce il messaggio di posta elettronica normalizzato per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetNormalizedUserNameAsync(TUser, CancellationToken)

Ottiene il nome utente normalizzato per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetPasswordHashAsync(TUser, CancellationToken)

Ottiene l'hash della password per un utente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetPhoneNumberAsync(TUser, CancellationToken)

Ottiene il numero di telefono, se presente, per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetPhoneNumberConfirmedAsync(TUser, CancellationToken)

Ottiene un flag che indica se il numero di telefono specificato userè stato confermato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetRolesAsync(TUser, CancellationToken)

Recupera i ruoli specificati user è un membro di .

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetSecurityStampAsync(TUser, CancellationToken)

Ottenere il timbro di sicurezza per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetTokenAsync(TUser, String, String, CancellationToken)

Restituisce il valore del token.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetTwoFactorEnabledAsync(TUser, CancellationToken)

Restituisce un flag che indica se l'autenticazione a due fattori specificata user è abilitata o meno, come operazione asincrona.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetUserIdAsync(TUser, CancellationToken)

Ottiene l'identificatore utente per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetUserNameAsync(TUser, CancellationToken)

Ottiene il nome utente per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetUsersForClaimAsync(Claim, CancellationToken)

Recupera tutti gli utenti con l'attestazione specificata.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
GetUsersInRoleAsync(String, CancellationToken)

Recupera tutti gli utenti nel ruolo specificato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
HasPasswordAsync(TUser, CancellationToken)

Restituisce un flag che indica se l'utente specificato ha una password.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
IncrementAccessFailedCountAsync(TUser, CancellationToken)

Registra che si è verificato un accesso non riuscito, incrementando il numero di accessi non riusciti.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
IsInRoleAsync(TUser, String, CancellationToken)

Restituisce un flag che indica se l'utente specificato è un membro dell'oggetto .normalizedRoleName

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
RedeemCodeAsync(TUser, String, CancellationToken)

Restituisce se un codice di ripristino è valido per un utente. Nota: i codici di ripristino sono validi una sola volta e non saranno validi dopo l'uso.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
RemoveClaimsAsync(TUser, IEnumerable<Claim>, CancellationToken)

Rimuove l'oggetto claims specificato dall'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
RemoveFromRoleAsync(TUser, String, CancellationToken)

Rimuove l'oggetto specificato normalizedRoleName dall'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
RemoveLoginAsync(TUser, String, String, CancellationToken)

Rimuove l'oggetto loginProvider specificato dall'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
RemoveTokenAsync(TUser, String, String, CancellationToken)

Elimina un token per un utente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
RemoveUserTokenAsync(TUserToken)

Rimuovere un nuovo token utente.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
RemoveUserTokenAsync(TUserToken)

Rimuovere un nuovo token utente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
ReplaceClaimAsync(TUser, Claim, Claim, CancellationToken)

Sostituisce l'oggetto claim nell'oggetto specificato usercon .newClaim

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
ReplaceCodesAsync(TUser, IEnumerable<String>, CancellationToken)

Aggiornamenti i codici di ripristino per l'utente durante l'invalidazione dei codici di ripristino precedenti.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
ResetAccessFailedCountAsync(TUser, CancellationToken)

Reimposta il numero di accessi non riusciti di un utente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SaveChanges(CancellationToken)

Salva l'archivio corrente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetAuthenticatorKeyAsync(TUser, String, CancellationToken)

Imposta la chiave di autenticazione per l'oggetto specificato user.

(Ereditato da UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>)
SetEmailAsync(TUser, String, CancellationToken)

Imposta l'indirizzo email per un useroggetto .

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetEmailConfirmedAsync(TUser, Boolean, CancellationToken)

Imposta il flag che indica se l'indirizzo di posta elettronica specificato userè stato confermato o meno.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetLockoutEnabledAsync(TUser, Boolean, CancellationToken)

Impostare il flag che indica se l'oggetto specificato user può essere bloccato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetLockoutEndDateAsync(TUser, Nullable<DateTimeOffset>, CancellationToken)

Blocca un utente fino al superamento della data di fine specificata. L'impostazione di una data di fine nel passato sblocca immediatamente un utente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetNormalizedEmailAsync(TUser, String, CancellationToken)

Imposta il messaggio di posta elettronica normalizzato per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetNormalizedUserNameAsync(TUser, String, CancellationToken)

Imposta il nome normalizzato specificato per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetPasswordHashAsync(TUser, String, CancellationToken)

Imposta l'hash della password per un utente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetPhoneNumberAsync(TUser, String, CancellationToken)

Imposta il numero di telefono per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetPhoneNumberConfirmedAsync(TUser, Boolean, CancellationToken)

Imposta un flag che indica se il numero di telefono specificato userè stato confermato.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetSecurityStampAsync(TUser, String, CancellationToken)

Imposta la sicurezza stamp fornita per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetTokenAsync(TUser, String, String, String, CancellationToken)

Imposta il valore del token per un determinato utente.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetTwoFactorEnabledAsync(TUser, Boolean, CancellationToken)

Imposta un flag che indica se l'autenticazione a due fattori specificata user è abilitata o meno, come operazione asincrona.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
SetUserNameAsync(TUser, String, CancellationToken)

Imposta l'oggetto specificato userName per l'oggetto specificato user.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
ThrowIfDisposed()

Genera se questa classe è stata eliminata.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)
UpdateAsync(TUser, CancellationToken)

Aggiornamenti specificato nell'archivio user utenti.

(Ereditato da UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>)

Si applica a