UserManager<TUser, TKey>.FindAsync Method (String, String)

Returns a user with the specified username and password or null if there is no match.

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

public virtual Task<TUser> FindAsync(
	string userName,
	string password
)

Parameters

userName
Type: System.String
The username.
password
Type: System.String
The password.

Return Value

Type: System.Threading.Tasks.Task<TUser>
The task representing the asynchronous operation.
Show: