Share via


UserManager<TUser>.SetLockoutEndDateAsync メソッド

定義

指定した終了日が経過するまでユーザーをロックアウトします。 過去の終了日を設定すると、すぐにユーザーのロックが解除されます。

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)

パラメーター

user
TUser

ロックアウト日を設定する必要があるユーザー。

lockoutEnd
Nullable<DateTimeOffset>

DateTimeOffsetのロックアウトがuser終了する後の 。

戻り値

Task操作の を含む非同期操作をIdentityResult表す 。

適用対象