UserManager<TUser, TKey>.FindAsync Method

 

Returns the user associated with this login.

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

Overload List

Name Description
System_CAPS_pubmethod FindAsync(String, String)

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

System_CAPS_pubmethod FindAsync(UserLoginInfo)

Returns the user associated with this login.

See Also

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace

Return to top

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

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

Syntax

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 Overridable Function FindAsync (
    userName As String,
    password As String
) As Task(Of TUser)

Parameters

Return Value

Type: System.Threading.Tasks.Task<TUser>

The task representing the asynchronous operation.

See Also

ASP.NET Identity

Return to top

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

Returns the user associated with this login.

Syntax

public virtual Task<TUser> FindAsync(
    UserLoginInfo login
)
public:
virtual Task<TUser>^ FindAsync(
    UserLoginInfo^ login
)
abstract FindAsync : 
        login:UserLoginInfo -> Task<'TUser>
override FindAsync : 
        login:UserLoginInfo -> Task<'TUser>
Public Overridable Function FindAsync (
    login As UserLoginInfo
) As Task(Of TUser)

Parameters

Return Value

Type: System.Threading.Tasks.Task<TUser>

The task representing the asynchronous operation.

See Also

ASP.NET Identity

Return to top