ValidatePasswordEventArgs Constructor (String^, String^, Boolean)
.NET Framework (current version)
Creates a new instance of the ValidatePasswordEventArgs class.
Assembly: System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: