SimpleMembershipProvider.ValidateUser Method

Verifies that the specified user account and password exist.

Namespace:  WebMatrix.WebData
Assembly:  WebMatrix.WebData (in WebMatrix.WebData.dll)

abstract ValidateUser : 
        username:string * 
        password:string -> bool  
override ValidateUser : 
        username:string * 
        password:string -> bool

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 a null reference (Nothing in Visual Basic) or empty.

Show: