Condividi tramite


PageBase.BadRequest Metodo

Definizione

Overload

BadRequest()

Crea un oggetto BadRequestResult che produce una Status400BadRequest risposta.

BadRequest(ModelStateDictionary)

Crea un oggetto BadRequestObjectResult che produce una Status400BadRequest risposta.

BadRequest(Object)

Crea un oggetto BadRequestObjectResult che produce una Status400BadRequest risposta.

BadRequest()

Origine:
PageBase.cs
Origine:
PageBase.cs
Origine:
PageBase.cs

Crea un oggetto BadRequestResult che produce una Status400BadRequest risposta.

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

Restituisce

Oggetto creato BadRequestResult per la risposta.

Attributi

Si applica a

BadRequest(ModelStateDictionary)

Origine:
PageBase.cs
Origine:
PageBase.cs
Origine:
PageBase.cs

Crea un oggetto BadRequestObjectResult che produce una Status400BadRequest risposta.

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

Parametri

modelState
ModelStateDictionary

Oggetto ModelStateDictionary contenente gli errori da restituire al client.

Restituisce

Oggetto creato BadRequestObjectResult per la risposta.

Attributi

Si applica a

BadRequest(Object)

Origine:
PageBase.cs
Origine:
PageBase.cs
Origine:
PageBase.cs

Crea un oggetto BadRequestObjectResult che produce una Status400BadRequest risposta.

public:
 virtual Microsoft::AspNetCore::Mvc::BadRequestObjectResult ^ BadRequest(System::Object ^ error);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest (object error);
public virtual Microsoft.AspNetCore.Mvc.BadRequestObjectResult BadRequest (object error);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member BadRequest : obj -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
override this.BadRequest : obj -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
abstract member BadRequest : obj -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
override this.BadRequest : obj -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
Public Overridable Function BadRequest (error As Object) As BadRequestObjectResult

Parametri

error
Object

Oggetto errore da restituire al client.

Restituisce

Oggetto creato BadRequestObjectResult per la risposta.

Attributi

Si applica a