SignInManager<TUser>.SignInAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
SignInAsync(TUser, AuthenticationProperties, String) |
Entra no especificado |
SignInAsync(TUser, AuthenticationProperties, String) |
Entra no especificado |
SignInAsync(TUser, Boolean, String) |
Entra no especificado |
SignInAsync(TUser, AuthenticationProperties, String)
- Origem:
- SignInManager.cs
- Origem:
- SignInManager.cs
- Origem:
- SignInManager.cs
Entra no especificado 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
Parâmetros
- user
- TUser
O usuário para entrar.
- authenticationProperties
- AuthenticationProperties
Propriedades aplicadas ao cookie de logon e autenticação.
- authenticationMethod
- String
Nome do método usado para autenticar o usuário.
Retornos
O objeto de tarefa que representa a operação assíncrona.
Aplica-se a
SignInAsync(TUser, AuthenticationProperties, String)
Entra no especificado 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
Parâmetros
- user
- TUser
O usuário para entrar.
- authenticationProperties
- AuthenticationProperties
Propriedades aplicadas ao cookie de logon e autenticação.
- authenticationMethod
- String
Nome do método usado para autenticar o usuário.
Retornos
O objeto de tarefa que representa a operação assíncrona.
Aplica-se a
SignInAsync(TUser, Boolean, String)
- Origem:
- SignInManager.cs
- Origem:
- SignInManager.cs
- Origem:
- SignInManager.cs
Entra no especificado 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
Parâmetros
- user
- TUser
O usuário para entrar.
- isPersistent
- Boolean
Sinalizador indicando se o cookie de entrada deve persistir após o navegador ser fechado.
- authenticationMethod
- String
Nome do método usado para autenticar o usuário.
Retornos
O objeto de tarefa que representa a operação assíncrona.