UserManager<TUser>.FindAsync Method (String, String)
Return a user with the specified username and password or null if there is no match.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
Syntax
'Declaration
Public Overridable Function FindAsync ( _
userName As String, _
password As String _
) As Task(Of TUser)
'Usage
Dim instance As UserManager
Dim userName As String
Dim password As String
Dim returnValue As Task(Of TUser)
returnValue = instance.FindAsync(userName, _
password)
public virtual Task<TUser> FindAsync(
string userName,
string password
)
public:
virtual Task<TUser>^ FindAsync(
String^ userName,
String^ password
)
abstract FindAsync :
userName:string *
password:string -> Task<'TUser>
override FindAsync :
userName:string *
password:string -> Task<'TUser>
public function FindAsync(
userName : String,
password : String
) : Task<TUser>
Parameters
- userName
Type: System.String
- password
Type: System.String
Return Value
Type: System.Threading.Tasks.Task<TUser>