ContentResult 클래스

정의

ActionResult 실행될 때 콘텐츠가 포함된 응답을 생성하는 입니다.

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

생성자

ContentResult()

ActionResult 실행될 때 콘텐츠가 포함된 응답을 생성하는 입니다.

속성

Content

응답 본문을 나타내는 콘텐츠를 가져오거나 설정합니다.

ContentType

를 사용하여 MediaTypeHeaderValue처리할 수 있는 응답의 Content-Type 헤더를 가져오거나 설정합니다.

StatusCode

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

메서드

ExecuteResult(ActionContext)

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

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

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

적용 대상