SignInManager<TUser, TKey>.PasswordSignInAsync Method (String, String, Boolean, Boolean)
Sign in the user in using the user name and password
Namespace: Microsoft.AspNet.Identity.Owin
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Syntax
public virtual Task<SignInStatus> PasswordSignInAsync(
string userName,
string password,
bool isPersistent,
bool shouldLockout
)
public:
virtual Task<SignInStatus>^ PasswordSignInAsync(
String^ userName,
String^ password,
bool isPersistent,
bool shouldLockout
)
abstract PasswordSignInAsync :
userName:string *
password:string *
isPersistent:bool *
shouldLockout:bool -> Task<SignInStatus>
override PasswordSignInAsync :
userName:string *
password:string *
isPersistent:bool *
shouldLockout:bool -> Task<SignInStatus>
Public Overridable Function PasswordSignInAsync (
userName As String,
password As String,
isPersistent As Boolean,
shouldLockout As Boolean
) As Task(Of SignInStatus)
Parameters
- userName
Type: System.String
- password
Type: System.String
- isPersistent
Type: System.Boolean
- shouldLockout
Type: System.Boolean
Return Value
Type: System.Threading.Tasks.Task<SignInStatus>
See Also
SignInManager<TUser, TKey> Class
Microsoft.AspNet.Identity.Owin Namespace
Return to top