อ่านในภาษาอังกฤษ

แชร์ผ่าน


AuthenticationHandler<TOptions>.ForbidAsync Method

Definition

Forbid the current request.

C#
public System.Threading.Tasks.Task ForbidAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
C#
public System.Threading.Tasks.Task ForbidAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);

Parameters

properties
AuthenticationProperties

The AuthenticationProperties that contains the extra meta-data arriving with the authentication.

Returns

A task.

Implements

Applies to

ผลิตภัณฑ์ เวอร์ชัน
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0