共用方式為


AuthenticatorTokenProvider<TUser>.GenerateAsync 方法

定義

傳回空字串,因為不會傳送驗證器代碼。

public:
 virtual System::Threading::Tasks::Task<System::String ^> ^ GenerateAsync(System::String ^ purpose, Microsoft::AspNetCore::Identity::UserManager<TUser> ^ manager, TUser user);
public virtual System.Threading.Tasks.Task<string> GenerateAsync (string purpose, Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user);
abstract member GenerateAsync : string * Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User -> System.Threading.Tasks.Task<string>
override this.GenerateAsync : string * Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User -> System.Threading.Tasks.Task<string>
Public Overridable Function GenerateAsync (purpose As String, manager As UserManager(Of TUser), user As TUser) As Task(Of String)

參數

purpose
String

忽略。

manager
UserManager<TUser>

UserManager<TUser> 從中擷取 的 user

user
TUser

TUser

傳回

字串。空。

實作

適用於