ValidatePasswordEventArgs Constructor (String, String, Boolean)

 

Creates a new instance of the ValidatePasswordEventArgs class.

Namespace:   System.Web.Security
Assembly:  System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)

new : 
        userName:string *
        password:string *
        isNewUser:bool -> ValidatePasswordEventArgs

Parameters

userName
Type: System.String

The membership user name for the current create-user, change-password, or reset-password action.

password
Type: System.String

The new password for the specified membership user.

isNewUser
Type: System.Boolean

true if the event is occurring while a new user is being created; otherwise, false.

The ValidatePasswordEventArgs constructor is used by a membership provider implementation in the CreateUser, ChangePassword, and ResetPassword method implementations.

The following code example shows a sample ChangePassword implementation that creates a new ValidatePasswordEventArgs object to pass to the ValidatingPassword event.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: