Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
userName Type: System.String
The name of the user to find.
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