Επεξεργασία

Κοινή χρήση μέσω


MembershipProvider.ValidatingPassword Event

Definition

Occurs when a user is created, a password is changed, or a password is reset.

public:
 event System::Web::Security::MembershipValidatePasswordEventHandler ^ ValidatingPassword;
public event System.Web.Security.MembershipValidatePasswordEventHandler ValidatingPassword;
member this.ValidatingPassword : System.Web.Security.MembershipValidatePasswordEventHandler 
Public Custom Event ValidatingPassword As MembershipValidatePasswordEventHandler 

Event Type

Examples

For an example of a MembershipProvider implementation, see Implementing a Profile Provider.

Remarks

The ValidatingPassword event is raised during the CreateUser, ChangePassword, and ResetPassword methods.

The ValidatingPassword event occurs before the action requested and enables the user to continue or cancel the requested action. If the action is canceled, the user can specify an exception to be thrown.

Users use a MembershipValidatePasswordEventHandler event handler to specify a handler for the ValidatingPassword event. Provider implementers can use the OnValidatingPassword virtual method to raise the ValidatingPassword event.

Applies to

See also