Freigeben über


ControllerBase.ValidationProblem Methode

Definition

Überlädt

ValidationProblem(ValidationProblemDetails)

Erstellt eine BadRequestObjectResult, die eine Status400BadRequest Antwort erzeugt.

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary)

Erstellt eine ActionResult, die eine Status400BadRequest Antwort mit einem ValidationProblemDetails-Wert erzeugt.

ValidationProblem()

Erstellt eine ActionResult, die eine Status400BadRequest Antwort mit Überprüfungsfehlern aus ModelStateerzeugt.

ValidationProblem(ModelStateDictionary)

Erstellt eine ActionResult, die eine Status400BadRequest Antwort mit Überprüfungsfehlern aus modelStateDictionaryerzeugt.

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary, IDictionary<String,Object>)

Erstellt eine ActionResult, die eine Status400BadRequest Antwort mit einem ValidationProblemDetails-Wert erzeugt.

ValidationProblem(ValidationProblemDetails)

Quelle:
ControllerBase.cs
Quelle:
ControllerBase.cs
Quelle:
ControllerBase.cs

Erstellt eine BadRequestObjectResult, die eine Status400BadRequest Antwort erzeugt.

public:
 virtual Microsoft::AspNetCore::Mvc::ActionResult ^ ValidationProblem(Microsoft::AspNetCore::Mvc::ValidationProblemDetails ^ descriptor);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ValidationProblemDetails descriptor);
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ValidationProblemDetails descriptor);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (descriptor As ValidationProblemDetails) As ActionResult

Parameter

Gibt zurück

Die erstellte BadRequestObjectResult für die Antwort.

Attribute

Gilt für:

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary)

Quelle:
ControllerBase.cs

Erstellt eine ActionResult, die eine Status400BadRequest Antwort mit einem ValidationProblemDetails-Wert erzeugt.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string detail = default, string instance = default, int? statusCode = default, string title = default, string type = default, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary = default);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary? modelStateDictionary = default);
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary? modelStateDictionary = default);
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string? detail, string? instance, int? statusCode, string? title, string? type, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary? modelStateDictionary);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
abstract member ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (Optional detail As String = Nothing, Optional instance As String = Nothing, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional modelStateDictionary As ModelStateDictionary = Nothing) As ActionResult
Public Overridable Function ValidationProblem (detail As String, instance As String, statusCode As Nullable(Of Integer), title As String, type As String, modelStateDictionary As ModelStateDictionary) As ActionResult

Parameter

detail
String

Der Wert für Detail.

instance
String

Der Wert für Instance.

statusCode
Nullable<Int32>

Der Statuscode.

title
String

Der Wert für Title.

type
String

Der Wert für Type.

modelStateDictionary
ModelStateDictionary

Die ModelStateDictionary. Wenn nullModelStateverwendet.

Gibt zurück

Die erstellte ActionResult für die Antwort.

Attribute

Gilt für:

ValidationProblem()

Quelle:
ControllerBase.cs
Quelle:
ControllerBase.cs
Quelle:
ControllerBase.cs

Erstellt eine ActionResult, die eine Status400BadRequest Antwort mit Überprüfungsfehlern aus ModelStateerzeugt.

public:
 virtual Microsoft::AspNetCore::Mvc::ActionResult ^ ValidationProblem();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem ();
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
abstract member ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem () As ActionResult

Gibt zurück

Die erstellte ActionResult für die Antwort.

Attribute

Gilt für:

ValidationProblem(ModelStateDictionary)

Quelle:
ControllerBase.cs
Quelle:
ControllerBase.cs
Quelle:
ControllerBase.cs

Erstellt eine ActionResult, die eine Status400BadRequest Antwort mit Überprüfungsfehlern aus modelStateDictionaryerzeugt.

public:
 virtual Microsoft::AspNetCore::Mvc::ActionResult ^ ValidationProblem(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelStateDictionary);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary);
[Microsoft.AspNetCore.Mvc.NonAction]
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
[<Microsoft.AspNetCore.Mvc.NonAction>]
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (modelStateDictionary As ModelStateDictionary) As ActionResult

Parameter

modelStateDictionary
ModelStateDictionary

Die ModelStateDictionary.

Gibt zurück

Die erstellte BadRequestObjectResult für die Antwort.

Attribute

Gilt für:

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary, IDictionary<String,Object>)

Erstellt eine ActionResult, die eine Status400BadRequest Antwort mit einem ValidationProblemDetails-Wert erzeugt.

[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary? modelStateDictionary = default, System.Collections.Generic.IDictionary<string,object?>? extensions = default);
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : string * string * Nullable<int> * string * string * Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (Optional detail As String = Nothing, Optional instance As String = Nothing, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional modelStateDictionary As ModelStateDictionary = Nothing, Optional extensions As IDictionary(Of String, Object) = Nothing) As ActionResult

Parameter

detail
String

Der Wert für Detail.

instance
String

Der Wert für Instance.

statusCode
Nullable<Int32>

Der Statuscode.

title
String

Der Wert für Title.

type
String

Der Wert für Type.

modelStateDictionary
ModelStateDictionary

Die ModelStateDictionary. Wenn nullModelStateverwendet.

extensions
IDictionary<String,Object>

Der Wert für Extensions.

Gibt zurück

Die erstellte ActionResult für die Antwort.

Attribute

Gilt für: