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)

public virtual Task<TUser> FindByNameAsync(
	string userName
)

Parameters

userName
Type: System.String
The user name.

Return Value

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