System.Web.Security.MembershipUser.IsLockedOut Property

Gets a value indicating whether the membership user is locked out and unable to be validated.

Syntax

public virtual bool IsLockedOut { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Users are most commonly locked out and cannot be validated by the Membership.ValidateUser(string, string) method 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.MaxInvalidPasswordAttemptswithin the Membership.PasswordAttemptWindow.

To set this property to false and let the user try to log in again, you can use the MembershipUser.UnlockUser method.

Requirements

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