System.Web.Security.MembershipUser.LastLockoutDate Property

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

Syntax

public virtual DateTime LastLockoutDate { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

Users can also be locked out if you use the MembershipUser.GetPassword(string) or MembershipUser.ResetPassword(string) 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 MembershipUser.LastLockoutDate property is determined by the membership provider. For example, when a membership user is created using the System.Web.Security.SqlMembershipProvider provider, the MembershipUser.LastLockoutDate property for the user is initially set to 01/01/1754.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0