Freigeben über


BadRequestObjectResult Konstruktoren

Definition

Überlädt

BadRequestObjectResult(ModelStateDictionary)

Erstellt eine neue BadRequestObjectResult-Instanz.

BadRequestObjectResult(Object)

Erstellt eine neue BadRequestObjectResult-Instanz.

BadRequestObjectResult(ModelStateDictionary)

Quelle:
BadRequestObjectResult.cs
Quelle:
BadRequestObjectResult.cs
Quelle:
BadRequestObjectResult.cs

Erstellt eine neue BadRequestObjectResult-Instanz.

public:
 BadRequestObjectResult(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
public BadRequestObjectResult (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
new Microsoft.AspNetCore.Mvc.BadRequestObjectResult : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
Public Sub New (modelState As ModelStateDictionary)

Parameter

modelState
ModelStateDictionary

ModelStateDictionary mit den Validierungsfehlern.

Gilt für:

BadRequestObjectResult(Object)

Quelle:
BadRequestObjectResult.cs
Quelle:
BadRequestObjectResult.cs
Quelle:
BadRequestObjectResult.cs

Erstellt eine neue BadRequestObjectResult-Instanz.

public:
 BadRequestObjectResult(System::Object ^ error);
public BadRequestObjectResult (object error);
public BadRequestObjectResult (object? error);
new Microsoft.AspNetCore.Mvc.BadRequestObjectResult : obj -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
Public Sub New (error As Object)

Parameter

error
Object

Enthält die Fehler, die an den Client zurückgegeben werden sollen.

Gilt für: