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)

Syntax

'Declaration
Public Overridable Function FindAsync ( _
    userName As String, _
    password As String _
) As Task(Of TUser)
'Usage
Dim instance As UserManager 
Dim userName As String 
Dim password As String 
Dim returnValue As Task(Of TUser)

returnValue = instance.FindAsync(userName, _
    password)
public virtual Task<TUser> FindAsync(
    string userName,
    string password
)
public:
virtual Task<TUser>^ FindAsync(
    String^ userName, 
    String^ password
)
abstract FindAsync : 
        userName:string * 
        password:string -> Task<'TUser> 
override FindAsync : 
        userName:string * 
        password:string -> Task<'TUser> 
public function FindAsync(
    userName : String, 
    password : String
) : Task<TUser>

Parameters

Return Value

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

See Also

Reference

UserManager<TUser, TKey> Class

FindAsync Overload

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity