Table of Contents

Class ForbiddenObjectResult

Namespace
MADE.Web.Mvc.Responses
Assembly
MADE.Web.Mvc.dll

Defines an ObjectResult that when executed will produce a Forbidden (403) response.

public class ForbiddenObjectResult : ObjectResult, IStatusCodeActionResult, IActionResult
Inheritance
ForbiddenObjectResult
Implements
Inherited Members
Extension Methods

Constructors

ForbiddenObjectResult(ModelStateDictionary)

Initializes a new instance of the ForbiddenObjectResult class.

public ForbiddenObjectResult(ModelStateDictionary modelState)

Parameters

modelState ModelStateDictionary

The ModelStateDictionary containing the validation errors.

Exceptions

ArgumentNullException

Thrown if the modelState is null.

ForbiddenObjectResult(object)

Initializes a new instance of the ForbiddenObjectResult class.

public ForbiddenObjectResult(object error)

Parameters

error object

Contains the errors to be returned to the client.