AuthenticablePrincipal.LastBadPasswordAttempt 屬性

定義

取得可為 Null 的 DateTime,指定上次嘗試用錯誤密碼登入這個帳戶的日期和時間。

public:
 property Nullable<DateTime> LastBadPasswordAttempt { Nullable<DateTime> get(); };
public DateTime? LastBadPasswordAttempt { get; }
member this.LastBadPasswordAttempt : Nullable<DateTime>
Public ReadOnly Property LastBadPasswordAttempt As Nullable(Of DateTime)

屬性值

可為 Null 的 DateTime,指定上次嘗試用錯誤密碼登入這個帳戶的日期和時間,如果未記錄到用錯誤密碼進行的登入活動則為 null。

例外狀況

基礎存放區不支援這個屬性。

備註

如同 中的所有 DateTimeSystem.DirectoryServices.AccountManagement 屬性,傳回的時間是以 UTC 格式。 若要將它轉換成當地時間,請在傳回物件上呼叫 ToLocalTime 方法。

適用於