JsonResult 클래스

정의

지정된 개체의 서식을 JSON으로 지정하는 작업 결과입니다.

public ref class JsonResult : Microsoft::AspNetCore::Mvc::ActionResult
public ref class JsonResult : Microsoft::AspNetCore::Mvc::ActionResult, Microsoft::AspNetCore::Mvc::IActionResult, Microsoft::AspNetCore::Mvc::Infrastructure::IStatusCodeActionResult
public class JsonResult : Microsoft.AspNetCore.Mvc.ActionResult
public class JsonResult : Microsoft.AspNetCore.Mvc.ActionResult, Microsoft.AspNetCore.Mvc.IActionResult, Microsoft.AspNetCore.Mvc.Infrastructure.IStatusCodeActionResult
type JsonResult = class
    inherit ActionResult
type JsonResult = class
    inherit ActionResult
    interface IStatusCodeActionResult
    interface IActionResult
type JsonResult = class
    inherit ActionResult
    interface IActionResult
    interface IStatusCodeActionResult
Public Class JsonResult
Inherits ActionResult
Public Class JsonResult
Inherits ActionResult
Implements IActionResult, IStatusCodeActionResult
상속
JsonResult
구현

생성자

JsonResult(Object)

지정된 value를 사용하여 새 JsonResult 를 만듭니다.

JsonResult(Object, JsonSerializerSettings)

지정된 value를 사용하여 새 JsonResult 를 만듭니다.

JsonResult(Object, Object)

지정된 value를 사용하여 새 JsonResult 를 만듭니다.

속성

ContentType

응답의 MediaTypeHeaderValue Content-Type 헤더를 나타내는 를 가져오거나 설정합니다.

SerializerSettings

serializer 설정을 가져오거나 설정합니다.

를 사용하는 System.Text.Json경우 instanceJsonSerializerOptions

를 사용하는 Newtonsoft.Json경우 의 instance JsonSerializerSettings합니다.

StatusCode

HTTP 상태 코드를 가져오거나 설정합니다.

Value

서식을 지정할 값을 가져오거나 설정합니다.

메서드

ExecuteResult(ActionContext)

작업 메서드의 결과 작업을 동기적으로 실행합니다. 이 메서드는 MVC에서 작업 메서드의 결과를 처리하기 위해 호출됩니다.

(다음에서 상속됨 ActionResult)
ExecuteResultAsync(ActionContext)

작업 메서드의 결과 작업을 비동기적으로 실행합니다. 이 메서드는 MVC에서 작업 메서드의 결과를 처리하기 위해 호출됩니다.

적용 대상