ControllerBase.UnprocessableEntity Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
UnprocessableEntity() |
Crea un oggetto UnprocessableEntityResult che produce una Status422UnprocessableEntity risposta. |
UnprocessableEntity(ModelStateDictionary) |
Crea un oggetto UnprocessableEntityObjectResult che produce una Status422UnprocessableEntity risposta. |
UnprocessableEntity(Object) |
Crea un oggetto UnprocessableEntityObjectResult che produce una Status422UnprocessableEntity risposta. |
UnprocessableEntity()
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
Crea un oggetto UnprocessableEntityResult che produce una Status422UnprocessableEntity risposta.
public:
virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityResult ^ UnprocessableEntity();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityResult UnprocessableEntity ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member UnprocessableEntity : unit -> Microsoft.AspNetCore.Mvc.UnprocessableEntityResult
override this.UnprocessableEntity : unit -> Microsoft.AspNetCore.Mvc.UnprocessableEntityResult
Public Overridable Function UnprocessableEntity () As UnprocessableEntityResult
Restituisce
Oggetto creato UnprocessableEntityResult per la risposta.
- Attributi
Si applica a
UnprocessableEntity(ModelStateDictionary)
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
Crea un oggetto UnprocessableEntityObjectResult che produce una Status422UnprocessableEntity risposta.
public:
virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityObjectResult ^ UnprocessableEntity(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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
Parametri
- modelState
- ModelStateDictionary
Oggetto ModelStateDictionary contenente gli errori da restituire al client.
Restituisce
Oggetto creato UnprocessableEntityObjectResult per la risposta.
- Attributi
Si applica a
UnprocessableEntity(Object)
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
- Origine:
- ControllerBase.cs
Crea un oggetto UnprocessableEntityObjectResult che produce una Status422UnprocessableEntity risposta.
public:
virtual Microsoft::AspNetCore::Mvc::UnprocessableEntityObjectResult ^ UnprocessableEntity(System::Object ^ error);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity (object error);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult UnprocessableEntity (object? error);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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
Parametri
- error
- Object
Oggetto di errore da restituire al client.
Restituisce
Oggetto creato UnprocessableEntityObjectResult per la risposta.
- Attributi