Delen via


ForbidResult Class

Definition

An ActionResult that on execution invokes HttpContext.ForbidAsync.

public ref class ForbidResult : Microsoft::AspNetCore::Mvc::ActionResult
public class ForbidResult : Microsoft.AspNetCore.Mvc.ActionResult
type ForbidResult = class
    inherit ActionResult
Public Class ForbidResult
Inherits ActionResult
Inheritance
ForbidResult

Constructors

ForbidResult()

Initializes a new instance of ForbidResult.

ForbidResult(AuthenticationProperties)

Initializes a new instance of ForbidResult with the specified properties.

ForbidResult(AuthenticationProperties)

Initializes a new instance of ForbidResult with the specified properties.

ForbidResult(IList<String>, AuthenticationProperties)

Initializes a new instance of ForbidResult with the specified authentication schemes and properties.

ForbidResult(IList<String>, AuthenticationProperties)

Initializes a new instance of ForbidResult with the specified authentication schemes and properties.

ForbidResult(IList<String>)

Initializes a new instance of ForbidResult with the specified authentication schemes.

ForbidResult(String, AuthenticationProperties)

Initializes a new instance of ForbidResult with the specified authentication scheme and properties.

ForbidResult(String, AuthenticationProperties)

Initializes a new instance of ForbidResult with the specified authentication scheme and properties.

ForbidResult(String)

Initializes a new instance of ForbidResult with the specified authentication scheme.

Properties

AuthenticationSchemes

Gets or sets the authentication schemes that are challenged.

Properties

Gets or sets the AuthenticationProperties used to perform the authentication challenge.

Methods

ExecuteResult(ActionContext)

Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.

(Inherited from ActionResult)
ExecuteResultAsync(ActionContext)

Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task.

Applies to