共用方式為


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 其中包含使用驗證抵達的額外中繼資料。

傳回

工作。

實作

適用於