ProblemDetailsFactory.CreateProblemDetails Metodo

Definizione

Crea un'istanza ProblemDetails che configura le impostazioni predefinite in base ai valori specificati in ApiBehaviorOptions.

public abstract Microsoft.AspNetCore.Mvc.ProblemDetails CreateProblemDetails (Microsoft.AspNetCore.Http.HttpContext httpContext, int? statusCode = default, string title = default, string type = default, string detail = default, string instance = default);
public abstract Microsoft.AspNetCore.Mvc.ProblemDetails CreateProblemDetails (Microsoft.AspNetCore.Http.HttpContext httpContext, int? statusCode = default, string? title = default, string? type = default, string? detail = default, string? instance = default);
abstract member CreateProblemDetails : Microsoft.AspNetCore.Http.HttpContext * Nullable<int> * string * string * string * string -> Microsoft.AspNetCore.Mvc.ProblemDetails
Public MustOverride Function CreateProblemDetails (httpContext As HttpContext, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing, Optional detail As String = Nothing, Optional instance As String = Nothing) As ProblemDetails

Parametri

httpContext
HttpContext

Oggetto HttpContext.

statusCode
Nullable<Int32>

Valore per Status.

title
String

Valore per Title.

type
String

Valore per Type.

detail
String

Valore per Detail.

instance
String

Valore per Instance.

Restituisce

Istanza di ProblemDetails.

Si applica a