SignInManager<TUser>.SignInAsync Metoda

Definice

Přetížení

SignInAsync(TUser, AuthenticationProperties, String)

Znaménka v zadaném znaku user.

SignInAsync(TUser, AuthenticationProperties, String)

Znaménka v zadaném znaku user.

SignInAsync(TUser, Boolean, String)

Znaménka v zadaném znaku user.

SignInAsync(TUser, AuthenticationProperties, String)

Znaménka v zadaném znaku user.

public virtual System.Threading.Tasks.Task SignInAsync (TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, string authenticationMethod = default);
public virtual System.Threading.Tasks.Task SignInAsync (TUser user, Microsoft.AspNetCore.Authentication.AuthenticationProperties authenticationProperties, string? authenticationMethod = default);
abstract member SignInAsync : 'User * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> System.Threading.Tasks.Task
override this.SignInAsync : 'User * Microsoft.AspNetCore.Authentication.AuthenticationProperties * string -> System.Threading.Tasks.Task
Public Overridable Function SignInAsync (user As TUser, authenticationProperties As AuthenticationProperties, Optional authenticationMethod As String = Nothing) As Task

Parametry

user
TUser

Uživatel se má přihlásit.

authenticationProperties
AuthenticationProperties

Vlastnosti použité pro přihlášení a ověřovací soubor cookie.

authenticationMethod
String

Název metody použité k ověření uživatele.

Návraty

Task

Objekt úkolu představující asynchronní operaci.

Platí pro

SignInAsync(TUser, AuthenticationProperties, String)

Znaménka v zadaném znaku user.

public virtual System.Threading.Tasks.Task SignInAsync (TUser user, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties authenticationProperties, string authenticationMethod = default);
abstract member SignInAsync : 'User * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> System.Threading.Tasks.Task
override this.SignInAsync : 'User * Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string -> System.Threading.Tasks.Task
Public Overridable Function SignInAsync (user As TUser, authenticationProperties As AuthenticationProperties, Optional authenticationMethod As String = Nothing) As Task

Parametry

user
TUser

Uživatel se má přihlásit.

authenticationProperties
AuthenticationProperties

Vlastnosti použité pro přihlášení a ověřovací soubor cookie.

authenticationMethod
String

Název metody použité k ověření uživatele.

Návraty

Task

Objekt úkolu představující asynchronní operaci.

Platí pro

SignInAsync(TUser, Boolean, String)

Znaménka v zadaném znaku user.

public virtual System.Threading.Tasks.Task SignInAsync (TUser user, bool isPersistent, string authenticationMethod = default);
public virtual System.Threading.Tasks.Task SignInAsync (TUser user, bool isPersistent, string? authenticationMethod = default);
abstract member SignInAsync : 'User * bool * string -> System.Threading.Tasks.Task
override this.SignInAsync : 'User * bool * string -> System.Threading.Tasks.Task
Public Overridable Function SignInAsync (user As TUser, isPersistent As Boolean, Optional authenticationMethod As String = Nothing) As Task

Parametry

user
TUser

Uživatel se má přihlásit.

isPersistent
Boolean

Příznak označující, jestli se má soubor cookie přihlášení zachovat po zavření prohlížeče.

authenticationMethod
String

Název metody použité k ověření uživatele.

Návraty

Task

Objekt úkolu představující asynchronní operaci.

Platí pro