AuthenticationHandler<TOptions>.HandleForbiddenAsync 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| HandleForbiddenAsync(AuthenticationProperties) | 重写此方法以处理 For禁止。 | 
| HandleForbiddenAsync(ChallengeContext) | 重写此方法以处理禁止的质询。 | 
HandleForbiddenAsync(AuthenticationProperties)
- Source:
- AuthenticationHandler.cs
- Source:
- AuthenticationHandler.cs
- Source:
- AuthenticationHandler.cs
重写此方法以处理 For禁止。
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.TaskProtected Overridable Function HandleForbiddenAsync (properties As AuthenticationProperties) As Task参数
- properties
- AuthenticationProperties
返回
任务。
适用于
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)参数
- context
- ChallengeContext
返回
忽略返回的布尔值。