ControllerBase.UnprocessableEntity ControllerBase.UnprocessableEntity ControllerBase.UnprocessableEntity Method

Definition

Overloads

UnprocessableEntity() UnprocessableEntity() UnprocessableEntity()

Creates an UnprocessableEntityResult that produces a Status422UnprocessableEntity response.

UnprocessableEntity(ModelStateDictionary) UnprocessableEntity(ModelStateDictionary) UnprocessableEntity(ModelStateDictionary)

Creates an UnprocessableEntityObjectResult that produces a Status422UnprocessableEntity response.

UnprocessableEntity(Object) UnprocessableEntity(Object) UnprocessableEntity(Object)

Creates an UnprocessableEntityObjectResult that produces a Status422UnprocessableEntity response.

UnprocessableEntity() UnprocessableEntity() UnprocessableEntity()

Creates an UnprocessableEntityResult that produces a Status422UnprocessableEntity response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityResult UnprocessableEntity ();
abstract member UnprocessableEntity : unit -> Microsoft.AspNetCore.Mvc.UnprocessableEntityResult
override this.UnprocessableEntity : unit -> Microsoft.AspNetCore.Mvc.UnprocessableEntityResult
Public Overridable Function UnprocessableEntity () As UnprocessableEntityResult

Returns

UnprocessableEntity(ModelStateDictionary) UnprocessableEntity(ModelStateDictionary) UnprocessableEntity(ModelStateDictionary)

Creates an UnprocessableEntityObjectResult that produces a Status422UnprocessableEntity response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
abstract member UnprocessableEntity : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
override this.UnprocessableEntity : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
Public Overridable Function UnprocessableEntity (modelState As ModelStateDictionary) As UnprocessableEntityObjectResult

Parameters

modelState
ModelStateDictionary ModelStateDictionary ModelStateDictionary

The ModelStateDictionary containing errors to be returned to the client.

Returns

UnprocessableEntity(Object) UnprocessableEntity(Object) UnprocessableEntity(Object)

Creates an UnprocessableEntityObjectResult that produces a Status422UnprocessableEntity response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity (object error);
abstract member UnprocessableEntity : obj -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
override this.UnprocessableEntity : obj -> Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult
Public Overridable Function UnprocessableEntity (error As Object) As UnprocessableEntityObjectResult

Parameters

error
Object Object Object

An error object to be returned to the client.

Returns

Applies to