Share via


UserManager<TUser>.CreateAsync Method

Definition

Overloads

CreateAsync(TUser)

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

CreateAsync(TUser, String)

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

CreateAsync(TUser)

Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs

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);
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
TUser

The user to create.

Returns

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

Applies to

CreateAsync(TUser, String)

Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs
Source:
UserManager.cs

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, System::String ^ password);
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
TUser

The user to create.

password
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