SimpleMembershipProvider.ValidateUser(String, String) 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.
Verifies that the specified user account and password exist.
public override bool ValidateUser (string username, string password);
override this.ValidateUser : string * string -> bool
Public Overrides Function ValidateUser (username As String, password As String) As Boolean
Parameters
- username
- String
The name of the user account to validate.
- password
- String
The password for the specified user.
Returns
true if the specified user name and password exist, and if the account has been confirmed; otherwise, false.
Exceptions
username
or password
are null or empty.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for