AuthenticationHandler<TOptions>.ForbidAsync 方法

定义

禁止当前请求。

public:
 virtual 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
override this.ForbidAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Function ForbidAsync (properties As AuthenticationProperties) As Task

参数

properties
AuthenticationProperties

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

返回

任务。

实现

适用于