Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OnValidatingPassword Method

MembershipProvider.OnValidatingPassword Method

Raises the ValidatingPassword event if an event handler has been defined.

Namespace:  System.Web.Security
Assembly:  System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)

abstract OnValidatingPassword : 
        e:ValidatePasswordEventArgs -> unit  
override OnValidatingPassword : 
        e:ValidatePasswordEventArgs -> unit

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.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft