Sdílet prostřednictvím


ControllerBase.ValidationProblem Metoda

Definice

Přetížení

ValidationProblem(ValidationProblemDetails)

Vytvoří BadRequestObjectResult, který vytvoří odpověď Status400BadRequest.

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

Vytvoří ActionResult, která vytvoří odpověď Status400BadRequest s hodnotou ValidationProblemDetails.

ValidationProblem()

Vytvoří ActionResult, která vytvoří odpověď Status400BadRequest s chybami ověření z ModelState.

ValidationProblem(ModelStateDictionary)

Vytvoří ActionResult, která vytvoří odpověď Status400BadRequest s chybami ověření z modelStateDictionary.

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

Vytvoří ActionResult, která vytvoří odpověď Status400BadRequest s hodnotou ValidationProblemDetails.

ValidationProblem(ValidationProblemDetails)

Zdroj:
ControllerBase.cs
Zdroj:
ControllerBase.cs
Zdroj:
ControllerBase.cs

Vytvoří BadRequestObjectResult, který vytvoří odpověď Status400BadRequest.

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

Parametry

Návraty

Vytvořená BadRequestObjectResult pro odpověď.

Atributy

Platí pro

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

Zdroj:
ControllerBase.cs

Vytvoří ActionResult, která vytvoří odpověď Status400BadRequest s hodnotou ValidationProblemDetails.

[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

Parametry

detail
String

Hodnota pro Detail.

instance
String

Hodnota pro Instance.

statusCode
Nullable<Int32>

Stavový kód.

title
String

Hodnota pro Title.

type
String

Hodnota pro Type.

modelStateDictionary
ModelStateDictionary

ModelStateDictionary. Pokud null používá ModelState.

Návraty

Vytvořená ActionResult pro odpověď.

Atributy

Platí pro

ValidationProblem()

Zdroj:
ControllerBase.cs
Zdroj:
ControllerBase.cs
Zdroj:
ControllerBase.cs

Vytvoří ActionResult, která vytvoří odpověď Status400BadRequest s chybami ověření z ModelState.

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

Návraty

Vytvořená ActionResult pro odpověď.

Atributy

Platí pro

ValidationProblem(ModelStateDictionary)

Zdroj:
ControllerBase.cs
Zdroj:
ControllerBase.cs
Zdroj:
ControllerBase.cs

Vytvoří ActionResult, která vytvoří odpověď Status400BadRequest s chybami ověření z modelStateDictionary.

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

Parametry

Návraty

Vytvořená BadRequestObjectResult pro odpověď.

Atributy

Platí pro

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

Vytvoří ActionResult, která vytvoří odpověď Status400BadRequest s hodnotou ValidationProblemDetails.

[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

Parametry

detail
String

Hodnota pro Detail.

instance
String

Hodnota pro Instance.

statusCode
Nullable<Int32>

Stavový kód.

title
String

Hodnota pro Title.

type
String

Hodnota pro Type.

modelStateDictionary
ModelStateDictionary

ModelStateDictionary. Pokud null používá ModelState.

extensions
IDictionary<String,Object>

Hodnota pro Extensions.

Návraty

Vytvořená ActionResult pro odpověď.

Atributy

Platí pro