ControllerBase.Problem(String, String, Nullable<Int32>, String, String) Method

Definition

Creates an ObjectResult that produces a ProblemDetails response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ObjectResult Problem (string detail = default, string instance = default, int? statusCode = default, string title = default, string type = default);
abstract member Problem : string * string * Nullable<int> * string * string -> Microsoft.AspNetCore.Mvc.ObjectResult
override this.Problem : string * string * Nullable<int> * string * string -> Microsoft.AspNetCore.Mvc.ObjectResult
Public Overridable Function Problem (Optional detail As String = null, Optional instance As String = null, Optional statusCode As Nullable(Of Integer) = null, Optional title As String = null, Optional type As String = null) As ObjectResult

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.

Returns

ObjectResult

The created ObjectResult for the response.

Attributes

Applies to