SPClaimsAuthMembershipProvider.ChangePasswordQuestionAndAnswer Method

Updates the password question and answer for a membership user.

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

Syntax

'Declaration
Public Overrides Function ChangePasswordQuestionAndAnswer ( _
    name As String, _
    password As String, _
    newPwdQuestion As String, _
    newPwdAnswer As String _
) As Boolean
'Usage
Dim instance As SPClaimsAuthMembershipProvider
Dim name As String
Dim password As String
Dim newPwdQuestion As String
Dim newPwdAnswer As String
Dim returnValue As Boolean

returnValue = instance.ChangePasswordQuestionAndAnswer(name, _
    password, newPwdQuestion, newPwdAnswer)
public override bool ChangePasswordQuestionAndAnswer(
    string name,
    string password,
    string newPwdQuestion,
    string newPwdAnswer
)

Parameters

  • name
    Type: System.String

    The user for which the password question and answer are updated.

  • newPwdQuestion
    Type: System.String

    The new password question for the user.

  • newPwdAnswer
    Type: System.String

    The new password answer for the user.

Return Value

Type: System.Boolean
true if the password question and answer are updated successfully; otherwise, false.

Remarks

If the user can be found and the password is correct, this override updates the password question and answer for the specified 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