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

Return Value

Type: System.Boolean
true if the user and password is valid; otherwise, false.

See Also

Reference

DefaultMembershipProvider Class

System.Web.Providers Namespace

Other Resources

ASP.NET Identity