Share via


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,用于指定最后一次登录此帐户的日期和时间。

例外

基础存储不支持此属性。

注解

与 中的所有 DateTime 属性一 System.DirectoryServices.AccountManagement样,返回的时间采用 UTC 格式。 若要将其转换为本地时间,请 ToLocalTime 对返回对象调用 方法。

适用于