SignInManager<TUser>.PasswordSignInAsync Metodo

Definizione

Overload

PasswordSignInAsync(String, String, Boolean, Boolean)

Tenta di accedere alla combinazione e password specificata userName come operazione asincrona.

PasswordSignInAsync(TUser, String, Boolean, Boolean)

Tenta di accedere alla combinazione e password specificata user come operazione asincrona.

PasswordSignInAsync(String, String, Boolean, Boolean)

Tenta di accedere alla combinazione e password specificata userName come operazione asincrona.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::SignInResult ^> ^ PasswordSignInAsync(System::String ^ userName, System::String ^ password, bool isPersistent, bool lockoutOnFailure);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> PasswordSignInAsync (string userName, string password, bool isPersistent, bool lockoutOnFailure);
abstract member PasswordSignInAsync : string * string * bool * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
override this.PasswordSignInAsync : string * string * bool * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
Public Overridable Function PasswordSignInAsync (userName As String, password As String, isPersistent As Boolean, lockoutOnFailure As Boolean) As Task(Of SignInResult)

Parametri

userName
String

Nome utente da accedere.

password
String

Password con cui tentare di accedere.

isPersistent
Boolean

Flag che indica se il cookie di accesso deve essere persistente dopo la chiusura del browser.

lockoutOnFailure
Boolean

Flag che indica se l'account utente deve essere bloccato se l'accesso ha esito negativo.

Restituisce

Oggetto attività che rappresenta l'operazione asincrona contenente l'oggetto per il tentativo di accesso.

Si applica a

PasswordSignInAsync(TUser, String, Boolean, Boolean)

Tenta di accedere alla combinazione e password specificata user come operazione asincrona.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::SignInResult ^> ^ PasswordSignInAsync(TUser user, System::String ^ password, bool isPersistent, bool lockoutOnFailure);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult> PasswordSignInAsync (TUser user, string password, bool isPersistent, bool lockoutOnFailure);
abstract member PasswordSignInAsync : 'User * string * bool * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
override this.PasswordSignInAsync : 'User * string * bool * bool -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.SignInResult>
Public Overridable Function PasswordSignInAsync (user As TUser, password As String, isPersistent As Boolean, lockoutOnFailure As Boolean) As Task(Of SignInResult)

Parametri

user
TUser

Utente da accedere.

password
String

Password con cui tentare di accedere.

isPersistent
Boolean

Flag che indica se il cookie di accesso deve essere persistente dopo la chiusura del browser.

lockoutOnFailure
Boolean

Flag che indica se l'account utente deve essere bloccato se l'accesso ha esito negativo.

Restituisce

Oggetto attività che rappresenta l'operazione asincrona contenente l'oggetto per il tentativo di accesso.

Si applica a