다음을 통해 공유


ProblemDetailsFactory.CreateProblemDetails 메서드

정의

ProblemDetails 지정된 ApiBehaviorOptions값에 따라 기본값을 구성하는 instance 만듭니다.

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

매개 변수

httpContext
HttpContext

HttpContext

statusCode
Nullable<Int32>

의 값입니다 Status.

title
String

의 값입니다 Title.

type
String

의 값입니다 Type.

detail
String

의 값입니다 Detail.

instance
String

의 값입니다 Instance.

반환

ProblemDetails 인스턴스입니다.

적용 대상