Export (0) Print
Expand All

SimpleMembershipProvider.ValidateUser Method

Verifies that the specified user account and password exist.

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

'Declaration
Public Overrides Function ValidateUser ( _
	username As String, _
	password As String _
) As Boolean
'Usage
Dim instance As SimpleMembershipProvider 
Dim username As String 
Dim password As String 
Dim returnValue As Boolean 

returnValue = instance.ValidateUser(username, _
	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 Nothing or empty.

Show:
© 2015 Microsoft