Language

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.FindByNameAsync Method (String)

 

Asynchronously finds a user by name.

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

Syntax

public virtual Task<TUser> FindByNameAsync(
    string userName
)
public:
virtual Task<TUser>^ FindByNameAsync(
    String^ userName
)
abstract FindByNameAsync :
        userName:string -> Task<'TUser>
override FindByNameAsync :
        userName:string -> Task<'TUser>
Public Overridable Function FindByNameAsync (
    userName As String
) As Task(Of TUser)

Parameters

Return Value

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

The task representing the asynchronous operation.

Implements

IUserStore<TUser, TKey>.FindByNameAsync(String)

See Also

UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class Microsoft.AspNet.Identity.EntityFramework Namespace [ASP.NET Identity](https://go.microsoft.com/fwlink/p/?linkid=393664.

Return to top