Share via


SPClaimsAuthMembershipProvider.UnlockUser method

Clears the lock that prevents the user from being validated.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function UnlockUser ( _
    userName As String _
) As Boolean
'Usage
Dim instance As SPClaimsAuthMembershipProvider
Dim userName As String
Dim returnValue As Boolean

returnValue = instance.UnlockUser(userName)
public override bool UnlockUser(
    string userName
)

Parameters

  • userName
    Type: System.String

    The user for whom the lock is cleared.

Return value

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

Remarks

This override clears the lock on the user in the membership provider that is not an SPClaimsAuthMembershipProvider, and is used by forms-based authentication in the current application.

See also

Reference

SPClaimsAuthMembershipProvider class

SPClaimsAuthMembershipProvider members

Microsoft.SharePoint.Administration.Claims namespace