共用方式為


IAuthenticationSchemeProvider.GetDefaultForbidSchemeAsync 方法

定義

傳回預設將用於 ForbidAsync(HttpContext, String, AuthenticationProperties) 的配置。 這通常會透過 DefaultForbidScheme 指定。 否則,這會回復為 GetDefaultChallengeSchemeAsync()

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)

傳回

預設會用於 ForbidAsync(HttpContext, String, AuthenticationProperties) 的配置。

適用於