ControllerBase.Problem メソッド

定義

応答を ObjectResult 生成するオブジェクトを ProblemDetails 作成します。

[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);
[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);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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 = Nothing, Optional instance As String = Nothing, Optional statusCode As Nullable(Of Integer) = Nothing, Optional title As String = Nothing, Optional type As String = Nothing) As ObjectResult

パラメーター

detail
String

の値 Detail

instance
String

の値 Instance

statusCode
Nullable<Int32>

の値 Status

title
String

の値 Title

type
String

の値 Type

戻り値

ObjectResult

応答用に作成された ObjectResult 値。

属性

適用対象