ForbidHttpResult Class

Definition

An IResult that on execution invokes HttpContext.ForbidAsync.

C#
public sealed class ForbidHttpResult : Microsoft.AspNetCore.Http.IResult
Inheritance
ForbidHttpResult
Implements

Properties

AuthenticationSchemes

Gets the authentication schemes that are challenged.

Properties

Gets the AuthenticationProperties used to perform the authentication challenge.

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0