Share via


UserManager<TUser>.CreateAsync Method (TUser)

Create a user with no password

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

'Declaration
Public Overridable Function CreateAsync ( _
    user As TUser _
) As Task(Of IdentityResult)
'Usage
Dim instance As UserManager 
Dim user As TUser
Dim returnValue As Task(Of IdentityResult)

returnValue = instance.CreateAsync(user)
public virtual Task<IdentityResult> CreateAsync(
    TUser user
)
public:
virtual Task<IdentityResult^>^ CreateAsync(
    TUser user
)
abstract CreateAsync : 
        user:'TUser -> Task<IdentityResult> 
override CreateAsync : 
        user:'TUser -> Task<IdentityResult> 
public function CreateAsync(
    user : TUser
) : Task<IdentityResult>

Parameters

Return Value

Type: System.Threading.Tasks.Task<IdentityResult>

See Also

Reference

UserManager<TUser> Class

CreateAsync Overload

Microsoft.AspNet.Identity Namespace