UserManager<TUser>.CreateAsync UserManager<TUser>.CreateAsync UserManager<TUser>.CreateAsync Method

Definition

Overloads

CreateAsync(TUser) CreateAsync(TUser) CreateAsync(TUser)

Creates the specified user in the backing store with no password, as an asynchronous operation.

CreateAsync(TUser, String) CreateAsync(TUser, String) CreateAsync(TUser, String)

Creates the specified user in the backing store with given password, as an asynchronous operation.

CreateAsync(TUser) CreateAsync(TUser) CreateAsync(TUser)

Creates the specified user in the backing store with no password, as an asynchronous operation.

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> CreateAsync (TUser user);
abstract member CreateAsync : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.CreateAsync : 'User -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function CreateAsync (user As TUser) As Task(Of IdentityResult)
Parameters
user

The user to create.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

CreateAsync(TUser, String) CreateAsync(TUser, String) CreateAsync(TUser, String)

Creates the specified user in the backing store with given password, as an asynchronous operation.

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> CreateAsync (TUser user, string password);
abstract member CreateAsync : 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.CreateAsync : 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function CreateAsync (user As TUser, password As String) As Task(Of IdentityResult)
Parameters
user

The user to create.

password
String String String

The password for the user to hash and store.

Returns

The Task that represents the asynchronous operation, containing the IdentityResult of the operation.

Applies to