ValidateUser Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Verifies that the specified user name and password exist in the data source.

Namespace: MySql.Web.Security
Assembly: MySql.Web (in MySql.Web.dll) Version: 6.8.4.0

Syntax

C#
public override bool ValidateUser(
	string username,
	string password
)
Visual Basic
Public Overrides Function ValidateUser ( _
	username As String, _
	password As String _
) As Boolean
Visual C++
public:
virtual bool ValidateUser(
	String^ username, 
	String^ password
) override

Parameters

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

Return Value

true if the specified username and password are valid; otherwise, false.

See Also