UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.FindByIdAsync Method
Asynchronously finds a user by ID.
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
'Declaration
Public Overridable Function FindByIdAsync ( _
userId As TKey _
) As Task(Of TUser)
'Usage
Dim instance As UserStore
Dim userId As TKey
Dim returnValue As Task(Of TUser)
returnValue = instance.FindByIdAsync(userId)
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 function FindByIdAsync(
userId : TKey
) : Task<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
Reference
UserStore<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace