VistaDB 6
VistaDB.Web Namespace / VistaDBMembershipProvider Class / ChangePasswordQuestionAndAnswer Method
The user to change the password question and answer for.
The password for the specified user.
The new password question for the specified user.
The new password answer for the specified user.


In This Topic
    ChangePasswordQuestionAndAnswer Method
    In This Topic
    Processes a request to update the password question and answer for a membership user.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function ChangePasswordQuestionAndAnswer( _
       ByVal username As System.String, _
       ByVal password As System.String, _
       ByVal newPasswordQuestion As System.String, _
       ByVal newPasswordAnswer As System.String _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As VistaDBMembershipProvider
    Dim username As System.String
    Dim password As System.String
    Dim newPasswordQuestion As System.String
    Dim newPasswordAnswer As System.String
    Dim value As System.Boolean
     
    value = instance.ChangePasswordQuestionAndAnswer(username, password, newPasswordQuestion, newPasswordAnswer)
    public override System.bool ChangePasswordQuestionAndAnswer( 
       System.string username,
       System.string password,
       System.string newPasswordQuestion,
       System.string newPasswordAnswer
    )

    Parameters

    username
    The user to change the password question and answer for.
    password
    The password for the specified user.
    newPasswordQuestion
    The new password question for the specified user.
    newPasswordAnswer
    The new password answer for the specified user.

    Return Value

    true if the password question and answer are updated successfully; otherwise, false.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also