Sdílet prostřednictvím


TypedResults.Problem Metoda

Definice

Přetížení

Problem(ProblemDetails)

ProblemDetails Vytvoří odpověď.

Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)

ProblemDetails Vytvoří odpověď.

Problem(ProblemDetails)

Zdroj:
TypedResults.cs

ProblemDetails Vytvoří odpověď.

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

Parametry

problemDetails
ProblemDetails

Objekt ProblemDetails , ze který chcete vytvořit odpověď.

Návraty

Vytvořený ProblemHttpResult pro odpověď.

Platí pro

Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)

Zdroj:
TypedResults.cs

ProblemDetails Vytvoří odpověď.

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

Parametry

detail
String

Hodnota pro Detail.

instance
String

Hodnota pro Instance.

statusCode
Nullable<Int32>

Hodnota pro Status.

title
String

Hodnota pro Title.

type
String

Hodnota pro Type.

extensions
IDictionary<String,Object>

Hodnota pro Extensions.

Návraty

Vytvořený ProblemHttpResult pro odpověď.

Platí pro