Export (0) Print
Expand All

MembershipProvider.OnValidatingPassword Method

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

Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)

protected virtual void OnValidatingPassword (
	ValidatePasswordEventArgs e
)
protected void OnValidatingPassword (
	ValidatePasswordEventArgs e
)
protected function OnValidatingPassword (
	e : ValidatePasswordEventArgs
)
Not applicable.

Parameters

e

The ValidatePasswordEventArgs to pass to the ValidatingPassword event handler.

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft