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.StringThe user for which the password question and answer are updated.
password
Type: System.StringThe password for the user.
newPwdQuestion
Type: System.StringThe new password question for the user.
newPwdAnswer
Type: System.StringThe 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