UserManager<TUser>.SetAuthenticationTokenAsync メソッド

定義

ユーザーの認証トークンを設定します。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ SetAuthenticationTokenAsync(TUser user, System::String ^ loginProvider, System::String ^ tokenName, System::String ^ tokenValue);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName, string tokenValue);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetAuthenticationTokenAsync (TUser user, string loginProvider, string tokenName, string? tokenValue);
abstract member SetAuthenticationTokenAsync : 'User * string * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.SetAuthenticationTokenAsync : 'User * string * string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function SetAuthenticationTokenAsync (user As TUser, loginProvider As String, tokenName As String, tokenValue As String) As Task(Of IdentityResult)

パラメーター

user
TUser
loginProvider
String

トークンが関連付けられているプロバイダーの認証スキーム。

tokenName
String

トークンの名前。

tokenValue
String

トークンの値。

戻り値

ユーザーが正常に更新されたかどうか。

適用対象