Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SimpleMembershipProvider.ValidateUser Method

Verifies that the specified user account and password exist.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)
public override bool ValidateUser(
	string username,
	string password
)

Parameters

username
Type: System.String
The name of the user account to validate.
password
Type: System.String
The password for the specified user.

Return Value

Type: System.Boolean
true if the specified user name and password exist, and if the account has been confirmed; otherwise, false.
ExceptionCondition
ArgumentException

username or password are null or empty.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.