MembershipProvider.OnValidatingPassword(ValidatePasswordEventArgs) Method
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.
Raises the ValidatingPassword event if an event handler has been defined.
protected:
virtual void OnValidatingPassword(System::Web::Security::ValidatePasswordEventArgs ^ e);
protected virtual void OnValidatingPassword (System.Web.Security.ValidatePasswordEventArgs e);
abstract member OnValidatingPassword : System.Web.Security.ValidatePasswordEventArgs -> unit
override this.OnValidatingPassword : System.Web.Security.ValidatePasswordEventArgs -> unit
Protected Overridable Sub OnValidatingPassword (e As ValidatePasswordEventArgs)
Parameters
The ValidatePasswordEventArgs to pass to the ValidatingPassword event handler.
Examples
For an example of a MembershipProvider implementation, see Implementing a Profile Provider.
Remarks
The OnValidatingPassword virtual method is used during the CreateUser, ChangePassword, and ResetPassword methods to raise the ValidatingPassword event if a MembershipValidatePasswordEventHandler has been specified. The e
parameter is used to pass a ValidatePasswordEventArgs object to the MembershipValidatePasswordEventHandler event handler. When the ValidatingPassword event has completed, the properties of the ValidatePasswordEventArgs object supplied as the e
parameter can be examined to determine whether the current action should be canceled and if a particular Exception, stored in the FailureInformation property, should be thrown.
Applies to
See also
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за