MembershipUser.LastLockoutDate Property

Gets the most recent date and time that the membership user was locked out.

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

public virtual DateTime LastLockoutDate { get; }
/** @property */
public DateTime get_LastLockoutDate ()

public function get LastLockoutDate () : DateTime

Not applicable.

Property Value

A DateTime object that represents the most recent date and time that the membership user was locked out.

Users are most commonly locked out when the MaxInvalidPasswordAttempts is reached within the PasswordAttemptWindow.

Users can also be locked out if you use the GetPassword or ResetPassword overload that accepts a password answer and the number of bad answers entered by the user reaches the Membership.MaxInvalidPasswordAttempts within the Membership.PasswordAttemptWindow.

The default value for the LastLockoutDate property is determined by the membership provider. For example, when a membership user is created using the SqlMembershipProvider provider, the LastLockoutDate property for the user is initially set to 01/01/1754.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0