Share via


UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.FindByIdAsync Method (TKey)

 

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

Return to top