MembershipProvider.OnValidatingPassword Method (System.Web.Security)

Switch View :
ScriptFree
.NET Framework Class Library
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)
Syntax

Visual Basic
Protected Overridable Sub OnValidatingPassword ( _
	e As ValidatePasswordEventArgs _
)
C#
protected virtual void OnValidatingPassword(
	ValidatePasswordEventArgs e
)
Visual C++
protected:
virtual void OnValidatingPassword(
	ValidatePasswordEventArgs^ e
)
F#
abstract OnValidatingPassword : 
        e:ValidatePasswordEventArgs -> unit 
override OnValidatingPassword : 
        e:ValidatePasswordEventArgs -> unit 
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.

Examples

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

Version Information

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also

Reference

Other Resources