RemoteAuthenticationHandler<TOptions>.HandleForbiddenAsync Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Overload
HandleForbiddenAsync(ChallengeContext) | |
HandleForbiddenAsync(AuthenticationProperties) |
Ambil alih metode ini untuk menangani Terlarang. |
HandleForbiddenAsync(ChallengeContext)
protected:
override System::Threading::Tasks::Task<bool> ^ HandleForbiddenAsync(Microsoft::AspNetCore::Http::Features::Authentication::ChallengeContext ^ context);
protected override System.Threading.Tasks.Task<bool> HandleForbiddenAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);
override this.HandleForbiddenAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
Protected Overrides Function HandleForbiddenAsync (context As ChallengeContext) As Task(Of Boolean)
Parameter
- context
- ChallengeContext
Mengembalikan
Berlaku untuk
HandleForbiddenAsync(AuthenticationProperties)
Ambil alih metode ini untuk menangani Terlarang.
protected:
override System::Threading::Tasks::Task ^ HandleForbiddenAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected override System.Threading.Tasks.Task HandleForbiddenAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
override this.HandleForbiddenAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Protected Overrides Function HandleForbiddenAsync (properties As AuthenticationProperties) As Task
Parameter
- properties
- AuthenticationProperties
Mengembalikan
Sebuah tugas.