IAuthenticationHandler.ForbidAsync(AuthenticationProperties) 方法

定义

禁止当前请求。

public:
 System::Threading::Tasks::Task ^ ForbidAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public System.Threading.Tasks.Task ForbidAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public System.Threading.Tasks.Task ForbidAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
abstract member ForbidAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Function ForbidAsync (properties As AuthenticationProperties) As Task

参数

properties
AuthenticationProperties

包含 AuthenticationProperties 与身份验证一起到达的额外元数据的 。

返回

任务。

适用于