MembershipProvider.ValidatingPassword Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om