System.Web.Security.MembershipProvider.UnlockUser Method

Clears a lock so that the membership user can be validated.

Syntax

public abstract bool UnlockUser (string userName)

Parameters

userName
The membership user whose lock status you want to clear.

Returns

true if the membership user was successfully unlocked; otherwise, false.

Remarks

Takes, as input, a user name, and updates the field in the data source that stores the MembershipUser.IsLockedOut property to false. The MembershipProvider.UnlockUser(string) method returns true if the record for the membership user is updated successfully; otherwise, false.

Requirements

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