次の方法で共有


SignInManager<TUser>.SignInAsync メソッド

定義

オーバーロード

SignInAsync(TUser, AuthenticationProperties, String)

指定した をサインインします user

SignInAsync(TUser, AuthenticationProperties, String)

指定した をサインインします user

SignInAsync(TUser, Boolean, String)

指定した をサインインします user

SignInAsync(TUser, AuthenticationProperties, String)

ソース:
SignInManager.cs
ソース:
SignInManager.cs

指定した をサインインします 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

パラメーター

user
TUser

サインインするユーザー。

authenticationProperties
AuthenticationProperties

ログインと認証 Cookie に適用されるプロパティ。

authenticationMethod
String

ユーザーの認証に使用されるメソッドの名前。

戻り値

非同期操作を表すタスク オブジェクト。

適用対象

SignInAsync(TUser, AuthenticationProperties, String)

指定した をサインインします 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

パラメーター

user
TUser

サインインするユーザー。

authenticationProperties
AuthenticationProperties

ログインと認証 Cookie に適用されるプロパティ。

authenticationMethod
String

ユーザーの認証に使用されるメソッドの名前。

戻り値

非同期操作を表すタスク オブジェクト。

適用対象

SignInAsync(TUser, Boolean, String)

ソース:
SignInManager.cs
ソース:
SignInManager.cs

指定した をサインインします 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

パラメーター

user
TUser

サインインするユーザー。

isPersistent
Boolean

ブラウザーを閉じた後にサインイン Cookie を保持するかどうかを示すフラグ。

authenticationMethod
String

ユーザーの認証に使用されるメソッドの名前。

戻り値

非同期操作を表すタスク オブジェクト。

適用対象