Share via


UserStore<TUser>.FindByNameAsync Method

Find a user by name

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

Syntax

'Declaration
Public Overridable Function FindByNameAsync ( _
    userName As String _
) As Task(Of TUser)
'Usage
Dim instance As UserStore 
Dim userName As String 
Dim returnValue As Task(Of TUser)

returnValue = instance.FindByNameAsync(userName)
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 function FindByNameAsync(
    userName : String
) : Task<TUser>

Parameters

Return Value

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

Implements

IUserStore<TUser>.FindByNameAsync(String)

See Also

Reference

UserStore<TUser> Class

Microsoft.AspNet.Identity.EntityFramework Namespace