SimpleMembershipProvider.ValidateUser(String, String) Method

Definition

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