ControllerBase.Problem Methode

Definition

Erstellt eine ObjectResult , die eine ProblemDetails Antwort erzeugt.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ObjectResult Problem (string detail = default, string instance = default, int? statusCode = default, string title = default, string type = default);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ObjectResult Problem (string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Problem : string * string * Nullable<int> * string * string -> Microsoft.AspNetCore.Mvc.ObjectResult
override this.Problem : string * string * Nullable<int> * string * string -> Microsoft.AspNetCore.Mvc.ObjectResult
Public Overridable Function Problem (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) As ObjectResult

Parameter

detail
String

Der Wert für Detail.

instance
String

Der Wert für Instance.

statusCode
Nullable<Int32>

Der Wert für Status.

title
String

Der Wert für Title.

type
String

Der Wert für Type.

Gibt zurück

Die für die Antwort erstellte ObjectResult .

Attribute

Gilt für: