UserStore<TUser>.FindByIdAsync Method
Find 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 String _
) As Task(Of TUser)
'Usage
Dim instance As UserStore
Dim userId As String
Dim returnValue As Task(Of TUser)
returnValue = instance.FindByIdAsync(userId)
public virtual Task<TUser> FindByIdAsync(
string userId
)
public:
virtual Task<TUser>^ FindByIdAsync(
String^ userId
)
abstract FindByIdAsync :
userId:string -> Task<'TUser>
override FindByIdAsync :
userId:string -> Task<'TUser>
public function FindByIdAsync(
userId : String
) : Task<TUser>
Parameters
- userId
Type: System.String
Return Value
Type: System.Threading.Tasks.Task<TUser>
Implements
IUserStore<TUser>.FindByIdAsync(String)