| ||||||||||||||||||||||||||
MembershipValidatePasswordEventHandler Class.NET Framework version 2.0 Represents the method that will handle the ValidatingPassword event of the MembershipProvider class.
|
||||||||||||||||||||||||||
| Visibility | Name | Parameters | Return Type |
|---|---|---|---|
| public | BeginInvoke | ( Object sender , ValidatePasswordEventArgs e , AsyncCallback callback , Object object ) | IAsyncResult |
| public | EndInvoke | ( IAsyncResult result ) | Void |
| public | Invoke | ( Object sender , ValidatePasswordEventArgs e ) | Void |
The MembershipValidatePasswordEventHandler delegate is defined for the ValidatingPassword event for a membership provider. The ValidatingPassword event is raised when the CreateUser method, the ChangePassword method, or the ResetPassword method of a membership provider is called.
You can use the ValidatingPassword event to validate password formats and values for membership users.
You can cancel the current CreateUser, ChangePassword, or ResetPassword action by setting the Cancel property of the supplied ValidatePasswordEventArgs to true during the ValidatingPassword event.
If you cancel the current action by setting the Cancel property to true, you can set the FailureInformation property of the supplied ValidatePasswordEventArgs to an exception that describes the reason for the password-validation failure. The calling method will throw the exception that the FailureInformation property is set to. If the FailureInformation property is a null reference ( Nothing in Visual Basic ), the caller will throw a generic password-validation failure exception.
Membership Class MembershipProvider Class MembershipUser Class
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme