UserManager<TUser, TKey>.FindByIdAsync Method (TKey)
Finds a user by ID.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.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: TKeyThe user ID.
Return Value
Type: System.Threading.Tasks.Task<TUser>
The task representing the asynchronous operation.
See Also
UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity
Return to top