Compartir a través de


TypedResults.Problem Método

Definición

Sobrecargas

Problem(ProblemDetails)

Genera una respuesta ProblemDetails.

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

Genera una respuesta ProblemDetails.

Problem(String, String, Nullable<Int32>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Genera una respuesta ProblemDetails.

Problem(ProblemDetails)

Source:
TypedResults.cs

Genera una respuesta ProblemDetails.

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

Parámetros

problemDetails
ProblemDetails

Objeto ProblemDetails para generar una respuesta.

Devoluciones

El ProblemHttpResult creado para la respuesta.

Se aplica a

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

Source:
TypedResults.cs

Genera una respuesta ProblemDetails.

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);
public static Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult Problem (string? detail, string? instance, int? statusCode, string? title, string? type, System.Collections.Generic.IDictionary<string,object?>? extensions);
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
Public Shared Function Problem (detail As String, instance As String, statusCode As Nullable(Of Integer), title As String, type As String, extensions As IDictionary(Of String, Object)) As ProblemHttpResult

Parámetros

detail
String

Valor de Detail.

instance
String

Valor de Instance.

statusCode
Nullable<Int32>

Valor de Status.

title
String

Valor de Title.

type
String

Valor de Type.

extensions
IDictionary<String,Object>

Valor de Extensions.

Devoluciones

El ProblemHttpResult creado para la respuesta.

Se aplica a

Problem(String, String, Nullable<Int32>, String, String, IEnumerable<KeyValuePair<String,Object>>)

Genera una respuesta ProblemDetails.

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.IEnumerable<System.Collections.Generic.KeyValuePair<string,object?>>? extensions = default);
static member Problem : string * string * Nullable<int> * string * string * seq<System.Collections.Generic.KeyValuePair<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 IEnumerable(Of KeyValuePair(Of String, Object)) = Nothing) As ProblemHttpResult

Parámetros

detail
String

Valor de Detail.

instance
String

Valor de Instance.

statusCode
Nullable<Int32>

Valor de Status.

title
String

Valor de Title.

type
String

Valor de Type.

Devoluciones

El ProblemHttpResult creado para la respuesta.

Se aplica a