VistaDB 6
VistaDB.Web Namespace / VistaDBMembershipProvider Class / ChangePassword Method
The user to update the password for.
The current password for the specified user.
The new password for the specified user.


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

    Parameters

    username
    The user to update the password for.
    oldPassword
    The current password for the specified user.
    newPassword
    The new password for the specified user.

    Return Value

    true if the password was 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