asp.net.ph

ValidatePasswordEventArgs Class

System.Web.Security Namespace


.NET Framework version 2.0

Provides event data for the ValidatingPassword event of the MembershipProvider class.

ValidatePasswordEventArgs Class Members

Collapse   Constructors

Visibility Constructor Parameters
public ValidatePasswordEventArgs ( String userName , String password , Boolean isNewUser )

Collapse   Properties

Visibility Name Value Type Accessibility
public Cancel Boolean [ Get , Set ]
public FailureInformation Exception [ Get , Set ]
public IsNewUser Boolean [ Get ]
public Password String [ Get ]
public UserName String [ Get ]

Remarks

The ValidatingPassword event is raised when the CreateUser, ChangePassword, or ResetPassword method of a membership provider is called.

You can handle 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 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 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.

See Also

MembershipProvider Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph