Results.Problem Method

Definition

Overloads

Problem(ProblemDetails)

Produces a ProblemDetails response.

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

Produces a ProblemDetails response.

Problem(ProblemDetails)

Produces a ProblemDetails response.

public static Microsoft.AspNetCore.Http.IResult Problem (Microsoft.AspNetCore.Mvc.ProblemDetails problemDetails);
static member Problem : Microsoft.AspNetCore.Mvc.ProblemDetails -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Problem (problemDetails As ProblemDetails) As IResult

Parameters

problemDetails
ProblemDetails

The ProblemDetails object to produce a response from.

Returns

The created IResult for the response.

Applies to

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

Produces a ProblemDetails response.

public static Microsoft.AspNetCore.Http.IResult 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.IResult
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 IResult

Parameters

detail
String

The value for Detail.

instance
String

The value for Instance.

statusCode
Nullable<Int32>

The value for Status.

title
String

The value for Title.

type
String

The value for Type.

extensions
IDictionary<String,Object>

The value for Extensions.

Returns

The created IResult for the response.

Applies to