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 ID.
Namespace: Microsoft.AspNet.Identity.EntityFramework Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
public virtual Task<TUser> FindByIdAsync(
TKey userId
)
public:
virtual Task<TUser>^ FindByIdAsync(
TKey userId
)
abstract FindByIdAsync :
userId:'TKey -> Task<'TUser>
override FindByIdAsync :
userId:'TKey -> Task<'TUser>
Public Overridable Function FindByIdAsync (
userId As TKey
) As Task(Of TUser)
Parameters
userId Type: TKey
The user ID.
Return Value
Type: System.Threading.Tasks.Task<TUser>
The task representing the asynchronous operation.
Implements
IUserStore<TUser, TKey>.FindByIdAsync(TKey)
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