AuthenticationHandler<TOptions>.HandleForbiddenAsync 方法

定義

多載

HandleForbiddenAsync(AuthenticationProperties)

覆寫此方法以處理 Forbid。

HandleForbiddenAsync(ChallengeContext)

覆寫此方法以處理禁止的挑戰。

HandleForbiddenAsync(AuthenticationProperties)

覆寫此方法以處理 Forbid。

protected:
 virtual System::Threading::Tasks::Task ^ HandleForbiddenAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected virtual System.Threading.Tasks.Task HandleForbiddenAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
abstract member HandleForbiddenAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.HandleForbiddenAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Protected Overridable Function HandleForbiddenAsync (properties As AuthenticationProperties) As Task

參數

傳回

工作。

適用於

HandleForbiddenAsync(ChallengeContext)

覆寫此方法以處理禁止的挑戰。

protected:
 virtual System::Threading::Tasks::Task<bool> ^ HandleForbiddenAsync(Microsoft::AspNetCore::Http::Features::Authentication::ChallengeContext ^ context);
protected virtual System.Threading.Tasks.Task<bool> HandleForbiddenAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);
abstract member HandleForbiddenAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
override this.HandleForbiddenAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
Protected Overridable Function HandleForbiddenAsync (context As ChallengeContext) As Task(Of Boolean)

參數

傳回

會忽略傳回的布林值。

適用於