UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken> Classe

Definizione

Rappresenta una nuova istanza di un archivio di persistenza per il tipo di utente specificato.

generic <typename TUser, typename TKey, typename TUserClaim, typename TUserLogin, typename TUserToken>
 where TUser : IdentityUser<TKey> where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey>gcnew() where TUserLogin : IdentityUserLogin<TKey>gcnew() where TUserToken : IdentityUserToken<TKey>gcnew()public ref class UserStoreBase abstract : IDisposable, Microsoft::AspNetCore::Identity::IQueryableUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserAuthenticationTokenStore<TUser>, Microsoft::AspNetCore::Identity::IUserAuthenticatorKeyStore<TUser>, Microsoft::AspNetCore::Identity::IUserClaimStore<TUser>, Microsoft::AspNetCore::Identity::IUserEmailStore<TUser>, Microsoft::AspNetCore::Identity::IUserLockoutStore<TUser>, Microsoft::AspNetCore::Identity::IUserLoginStore<TUser>, Microsoft::AspNetCore::Identity::IUserPasswordStore<TUser>, Microsoft::AspNetCore::Identity::IUserPhoneNumberStore<TUser>, Microsoft::AspNetCore::Identity::IUserSecurityStampStore<TUser>, Microsoft::AspNetCore::Identity::IUserStore<TUser>, Microsoft::AspNetCore::Identity::IUserTwoFactorRecoveryCodeStore<TUser>, Microsoft::AspNetCore::Identity::IUserTwoFactorStore<TUser>
public abstract class UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken> : IDisposable, Microsoft.AspNetCore.Identity.IQueryableUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserAuthenticationTokenStore<TUser>, Microsoft.AspNetCore.Identity.IUserAuthenticatorKeyStore<TUser>, Microsoft.AspNetCore.Identity.IUserClaimStore<TUser>, Microsoft.AspNetCore.Identity.IUserEmailStore<TUser>, Microsoft.AspNetCore.Identity.IUserLockoutStore<TUser>, Microsoft.AspNetCore.Identity.IUserLoginStore<TUser>, Microsoft.AspNetCore.Identity.IUserPasswordStore<TUser>, Microsoft.AspNetCore.Identity.IUserPhoneNumberStore<TUser>, Microsoft.AspNetCore.Identity.IUserSecurityStampStore<TUser>, Microsoft.AspNetCore.Identity.IUserStore<TUser>, Microsoft.AspNetCore.Identity.IUserTwoFactorRecoveryCodeStore<TUser>, Microsoft.AspNetCore.Identity.IUserTwoFactorStore<TUser> where TUser : IdentityUser<TKey> where TKey : IEquatable<TKey> where TUserClaim : IdentityUserClaim<TKey>, new() where TUserLogin : IdentityUserLogin<TKey>, new() where TUserToken : IdentityUserToken<TKey>, new()
type UserStoreBase<'User, 'Key, 'UserClaim, 'UserLogin, 'UserToken (requires 'User :> IdentityUser<'Key> and 'Key :> IEquatable<'Key> and 'UserClaim :> IdentityUserClaim<'Key> and 'UserClaim : (new : unit -> 'UserClaim) and 'UserLogin :> IdentityUserLogin<'Key> and 'UserLogin : (new : unit -> 'UserLogin) and 'UserToken :> IdentityUserToken<'Key> and 'UserToken : (new : unit -> 'UserToken))> = class
    interface IUserLoginStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IDisposable
    interface IUserClaimStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserPasswordStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserSecurityStampStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserEmailStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserLockoutStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserPhoneNumberStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IQueryableUserStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserTwoFactorStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserAuthenticationTokenStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserAuthenticatorKeyStore<'User (requires 'User :> IdentityUser<'Key>)>
    interface IUserTwoFactorRecoveryCodeStore<'User (requires 'User :> IdentityUser<'Key>)>
Public MustInherit Class UserStoreBase(Of TUser, TKey, TUserClaim, TUserLogin, TUserToken)
Implements IDisposable, IQueryableUserStore(Of TUser), IUserAuthenticationTokenStore(Of TUser), IUserAuthenticatorKeyStore(Of TUser), IUserClaimStore(Of TUser), IUserEmailStore(Of TUser), IUserLockoutStore(Of TUser), IUserLoginStore(Of TUser), IUserPasswordStore(Of TUser), IUserPhoneNumberStore(Of TUser), IUserSecurityStampStore(Of TUser), IUserStore(Of TUser), IUserTwoFactorRecoveryCodeStore(Of TUser), IUserTwoFactorStore(Of TUser)

Parametri di tipo

TUser

Tipo che rappresenta un utente.

TKey

Tipo della chiave primaria per un utente.

TUserClaim

Tipo che rappresenta un'attestazione.

TUserLogin

Tipo che rappresenta un account di accesso esterno dell'utente.

TUserToken

Tipo che rappresenta un token utente.

Ereditarietà
UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>
Derivato
Implementazioni

Costruttori

UserStoreBase<TUser,TKey,TUserClaim,TUserLogin,TUserToken>(IdentityErrorDescriber)

Crea una nuova istanza.

Proprietà

ErrorDescriber

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

Users

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

Metodi

AddClaimsAsync(TUser, IEnumerable<Claim>, CancellationToken)

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

AddLoginAsync(TUser, UserLoginInfo, CancellationToken)

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

AddUserTokenAsync(TUserToken)

Aggiungere un nuovo token utente.

ConvertIdFromString(String)

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

ConvertIdToString(TKey)

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

CountCodesAsync(TUser, CancellationToken)

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

CreateAsync(TUser, CancellationToken)

Crea l'oggetto specificato user nell'archivio utenti.

CreateUserClaim(TUser, Claim)

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

CreateUserLogin(TUser, UserLoginInfo)

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

CreateUserToken(TUser, String, String, String)

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

DeleteAsync(TUser, CancellationToken)

Elimina l'oggetto specificato user dall'archivio utenti.

Dispose()

Elimina l'archivio

FindByEmailAsync(String, CancellationToken)

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

FindByIdAsync(String, CancellationToken)

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

FindByLoginAsync(String, String, CancellationToken)

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

FindByNameAsync(String, CancellationToken)

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

FindTokenAsync(TUser, String, String, CancellationToken)

Trovare un token utente se esiste.

FindUserAsync(TKey, CancellationToken)

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

FindUserLoginAsync(String, String, CancellationToken)

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

FindUserLoginAsync(TKey, String, String, CancellationToken)

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

GetAccessFailedCountAsync(TUser, CancellationToken)

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

GetAuthenticatorKeyAsync(TUser, CancellationToken)

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

GetClaimsAsync(TUser, CancellationToken)

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

GetEmailAsync(TUser, CancellationToken)

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

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.

GetLockoutEnabledAsync(TUser, CancellationToken)

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

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.

GetLoginsAsync(TUser, CancellationToken)

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

GetNormalizedEmailAsync(TUser, CancellationToken)

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

GetNormalizedUserNameAsync(TUser, CancellationToken)

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

GetPasswordHashAsync(TUser, CancellationToken)

Ottiene l'hash della password per un utente.

GetPhoneNumberAsync(TUser, CancellationToken)

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

GetPhoneNumberConfirmedAsync(TUser, CancellationToken)

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

GetSecurityStampAsync(TUser, CancellationToken)

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

GetTokenAsync(TUser, String, String, CancellationToken)

Restituisce il valore del token.

GetTwoFactorEnabledAsync(TUser, CancellationToken)

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

GetUserIdAsync(TUser, CancellationToken)

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

GetUserNameAsync(TUser, CancellationToken)

Ottiene il nome utente per l'oggetto specificato user.

GetUsersForClaimAsync(Claim, CancellationToken)

Recupera tutti gli utenti con l'attestazione specificata.

HasPasswordAsync(TUser, CancellationToken)

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

IncrementAccessFailedCountAsync(TUser, CancellationToken)

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

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.

RemoveClaimsAsync(TUser, IEnumerable<Claim>, CancellationToken)

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

RemoveLoginAsync(TUser, String, String, CancellationToken)

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

RemoveTokenAsync(TUser, String, String, CancellationToken)

Elimina un token per un utente.

RemoveUserTokenAsync(TUserToken)

Rimuovere un nuovo token utente.

ReplaceClaimAsync(TUser, Claim, Claim, CancellationToken)

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

ReplaceCodesAsync(TUser, IEnumerable<String>, CancellationToken)

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

ResetAccessFailedCountAsync(TUser, CancellationToken)

Reimposta il numero di accessi non riusciti di un utente.

SetAuthenticatorKeyAsync(TUser, String, CancellationToken)

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

SetEmailAsync(TUser, String, CancellationToken)

Imposta l'indirizzo email per un useroggetto .

SetEmailConfirmedAsync(TUser, Boolean, CancellationToken)

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

SetLockoutEnabledAsync(TUser, Boolean, CancellationToken)

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

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.

SetNormalizedEmailAsync(TUser, String, CancellationToken)

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

SetNormalizedUserNameAsync(TUser, String, CancellationToken)

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

SetPasswordHashAsync(TUser, String, CancellationToken)

Imposta l'hash della password per un utente.

SetPhoneNumberAsync(TUser, String, CancellationToken)

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

SetPhoneNumberConfirmedAsync(TUser, Boolean, CancellationToken)

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

SetSecurityStampAsync(TUser, String, CancellationToken)

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

SetTokenAsync(TUser, String, String, String, CancellationToken)

Imposta il valore del token per un determinato utente.

SetTwoFactorEnabledAsync(TUser, Boolean, CancellationToken)

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

SetUserNameAsync(TUser, String, CancellationToken)

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

ThrowIfDisposed()

Genera se questa classe è stata eliminata.

UpdateAsync(TUser, CancellationToken)

Aggiornamenti specificato nell'archivio user utenti.

Si applica a