共用方式為


IdentityUser<TKey>.TwoFactorEnabled 屬性

定義

取得或設定旗標,指出是否為此使用者啟用雙因素驗證。

public:
 virtual property bool TwoFactorEnabled { bool get(); void set(bool value); };
public virtual bool TwoFactorEnabled { get; set; }
[Microsoft.AspNetCore.Identity.PersonalData]
public virtual bool TwoFactorEnabled { get; set; }
member this.TwoFactorEnabled : bool with get, set
[<Microsoft.AspNetCore.Identity.PersonalData>]
member this.TwoFactorEnabled : bool with get, set
Public Overridable Property TwoFactorEnabled As Boolean

屬性值

如果啟用 2fa,則為 True,否則為 false。

屬性

適用於