Bagikan melalui


IAuthenticationHandler.ForbidAsync(AuthenticationProperties) Metode

Definisi

Melarang permintaan saat ini.

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

Parameter

properties
AuthenticationProperties

AuthenticationProperties yang berisi meta-data tambahan yang tiba dengan autentikasi.

Mengembalikan

Sebuah tugas.

Berlaku untuk