AuthenticablePrincipal.LastLogon 屬性

定義

取得可為 Null 的 DateTime,指定上次登入這個帳戶的日期和時間。

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

屬性值

可為 Null 的 DateTime,指定上次登入這個帳戶的日期和時間。

例外狀況

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

備註

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

適用於