次の方法で共有


UnlockUser Method

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

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

Namespace:  Microsoft.CommerceServer.Runtime.Profiles
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Overrides Function UnlockUser As Boolean
'Usage
Dim instance As UpmMembershipUser
Dim returnValue As Boolean

returnValue = instance.UnlockUser()
public override bool UnlockUser()
public:
virtual bool UnlockUser() override
public override function UnlockUser() : boolean

Return Value

Type: System..::.Boolean
true if the membership user was successfully unlocked; otherwise false.

Remarks

Users are most commonly locked out and cannot be validated by the ValidateUser method when the MaxInvalidPasswordAttempts property is exceeded within the time specified in the PasswordAttemptWindow property of when too many attempts have been made to log on using the wrong password.

Returns false if the membership user is not found in the data store.

Permissions

See Also

Reference

UpmMembershipUser Class

UpmMembershipUser Members

Microsoft.CommerceServer.Runtime.Profiles Namespace