Share via


UserManager<TUser, TKey>.FindByNameAsync Method

Finds a user by user name.

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

Syntax

public virtual Task<TUser> FindByNameAsync(
    string userName
)

Parameters

Return Value

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

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity