Export (0) Print
Expand All

MembershipProvider.UnlockUser Method

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

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

public abstract bool UnlockUser (
	string userName
)
public abstract boolean UnlockUser (
	String userName
)
public abstract function UnlockUser (
	userName : String
) : boolean
Not applicable.

Parameters

userName

The membership user whose lock status you want to clear.

Return Value

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

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

For an example of a MembershipProvider implementation, see Implementing a Profile Provider.

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

Community Additions

ADD
Show:
© 2014 Microsoft