TypedResults.Problem Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
Problem(ProblemDetails) |
Erzeugt eine ProblemDetails Antwort. |
Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>) |
Erzeugt eine ProblemDetails Antwort. |
Problem(ProblemDetails)
- Quelle:
- TypedResults.cs
Erzeugt eine ProblemDetails Antwort.
public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem (Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails);
static member Problem : Microsoft.AspNetCore.Mvc.ProblemDetails -> Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult
Public Shared Function Problem (problemDetails As ProblemDetails) As ProblemHttpResult
Parameter
- problemDetails
- ProblemDetails
Das ProblemDetails Objekt, aus dem eine Antwort generiert werden soll.
Gibt zurück
Die für die Antwort erstellte ProblemHttpResult .
Gilt für:
Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)
- Quelle:
- TypedResults.cs
Erzeugt eine ProblemDetails Antwort.
public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem (string? detail = default, string? instance = default, int? statusCode = default, string? title = default, string? type = default, System.Collections.Generic.IDictionary<string,object?>? extensions = default);
static member Problem : string * string * Nullable<int> * string * string * System.Collections.Generic.IDictionary<string, obj> -> Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult
Public Shared 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, Optional extensions As IDictionary(Of String, Object) = Nothing) As ProblemHttpResult
Parameter
- extensions
- IDictionary<String,Object>
Der Wert für Extensions.
Gibt zurück
Die für die Antwort erstellte ProblemHttpResult .