UserManager<TUser, TKey>.FindByIdAsync Method

Finds a user by ID.

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

public virtual Task<TUser> FindByIdAsync(
	TKey userId
)

Parameters

userId
Type: TKey
The user ID.

Return Value

Type: System.Threading.Tasks.Task<TUser>
The task representing the asynchronous operation.
Show: