IAuthenticationSchemeProvider.GetDefaultForbidSchemeAsync Metoda

Definicja

Zwraca schemat, który będzie używany domyślnie dla ForbidAsync(HttpContext, String, AuthenticationProperties)elementu . Jest to zwykle określane za pośrednictwem polecenia DefaultForbidScheme. W przeciwnym razie nastąpi powrót do GetDefaultChallengeSchemeAsync() elementu .

public:
 System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticationScheme ^> ^ GetDefaultForbidSchemeAsync();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme> GetDefaultForbidSchemeAsync ();
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme?> GetDefaultForbidSchemeAsync ();
abstract member GetDefaultForbidSchemeAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationScheme>
Public Function GetDefaultForbidSchemeAsync () As Task(Of AuthenticationScheme)

Zwraca

Schemat, który będzie domyślnie używany dla ForbidAsync(HttpContext, String, AuthenticationProperties)programu .

Dotyczy