Bagikan melalui


UserManager<TUser>.SetLockoutEndDateAsync Metode

Definisi

Mengunci pengguna hingga tanggal selesai yang ditentukan telah berlalu. Mengatur tanggal akhir di masa lalu segera membuka kunci pengguna.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::IdentityResult ^> ^ SetLockoutEndDateAsync(TUser user, Nullable<DateTimeOffset> lockoutEnd);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult> SetLockoutEndDateAsync (TUser user, DateTimeOffset? lockoutEnd);
abstract member SetLockoutEndDateAsync : 'User * Nullable<DateTimeOffset> -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
override this.SetLockoutEndDateAsync : 'User * Nullable<DateTimeOffset> -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.IdentityResult>
Public Overridable Function SetLockoutEndDateAsync (user As TUser, lockoutEnd As Nullable(Of DateTimeOffset)) As Task(Of IdentityResult)

Parameter

user
TUser

Pengguna yang tanggal pengunciannya harus ditetapkan.

lockoutEnd
Nullable<DateTimeOffset>

Setelah DateTimeOffset itu userpenguncian harus berakhir.

Mengembalikan

Task yang mewakili operasi asinkron, yang berisi IdentityResult operasi.

Berlaku untuk