Share via


UserManager<TUser>.SetAuthenticationTokenAsync Yöntem

Tanım

Bir kullanıcı için kimlik doğrulama belirteci ayarlar.

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)

Parametreler

user
TUser
loginProvider
String

Belirtecin ilişkili olduğu sağlayıcı için kimlik doğrulama şeması.

tokenName
String

Belirtecin adı.

tokenValue
String

Belirtecin değeri.

Döndürülenler

Kullanıcının başarıyla güncelleştirilip güncelleştirilmediği.

Şunlara uygulanır