Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a user password only if one does not already exist.
Namespace: Microsoft.AspNet.Identity
Assembly: Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)
'Declaration
Public Overridable Function AddPasswordAsync ( _
userId As TKey, _
password As String _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager
Dim userId As TKey
Dim password As String
Dim returnValue As Task(Of IdentityResult)
returnValue = instance.AddPasswordAsync(userId, _
password)
public virtual Task<IdentityResult> AddPasswordAsync(
TKey userId,
string password
)
public:
virtual Task<IdentityResult^>^ AddPasswordAsync(
TKey userId,
String^ password
)
abstract AddPasswordAsync :
userId:'TKey *
password:string -> Task<IdentityResult>
override AddPasswordAsync :
userId:'TKey *
password:string -> Task<IdentityResult>
public function AddPasswordAsync(
userId : TKey,
password : String
) : Task<IdentityResult>
- userId
Type: TKey
The user ID.
- password
Type: System.String
The password value.
Type: System.Threading.Tasks.Task<IdentityResult>
The task representing the asynchronous operation.
UserManager<TUser, TKey> Class