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.StringThe 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