Assembly: System.Web.ApplicationServices (in System.Web.ApplicationServices.dll)
Thetype exposes the following members.
|Cancel||Gets or sets a value that indicates whether the current create-user, change-password, or reset-password action will be canceled.|
|FailureInformation||Gets or sets an exception that describes the reason for the password-validation failure.|
|IsNewUser||Gets a value that indicates whether the ValidatingPassword event is being raised during a call to the CreateUser method.|
|Password||Gets the password for the current create-user, change-password, or reset-password action.|
|UserName||Gets the name of the membership user for the current create-user, change-password, or reset-password action.|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
You can handle the ValidatingPassword event to validate password formats and values for membership users.
If you cancel the current action by setting the Cancel property to true, you can set the FailureInformation property to an exception that describes the reason for the password-validation failure. The calling method will throw the exception that the FailureInformation property is set to. If the FailureInformation property is a null reference (Nothing in Visual Basic), the caller will throw a generic password-validation failure exception.
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.