DefaultMembershipProvider.ValidateUser Method
Validates a user and password.
Namespace: System.Web.Providers
Assembly: System.Web.Providers (in System.Web.Providers.dll)
Syntax
'Declaration
Public Overrides Function ValidateUser ( _
username As String, _
password As String _
) As Boolean
'Usage
Dim instance As DefaultMembershipProvider
Dim username As String
Dim password As String
Dim returnValue As Boolean
returnValue = instance.ValidateUser(username, _
password)
public override bool ValidateUser(
string username,
string password
)
public:
virtual bool ValidateUser(
String^ username,
String^ password
) override
abstract ValidateUser :
username:string *
password:string -> bool
override ValidateUser :
username:string *
password:string -> bool
public override function ValidateUser(
username : String,
password : String
) : boolean
Parameters
- username
Type: System.String
The username to validate.
- password
Type: System.String
The password to validate.
Return Value
Type: System.Boolean
true if the user and password is valid; otherwise, false.
See Also
Reference
DefaultMembershipProvider Class
System.Web.Providers Namespace