다음을 통해 공유


ContentResult 클래스

정의

동작 메서드의 결과인 사용자 정의 콘텐츠 형식을 나타냅니다.

public class ContentResult : System.Web.Mvc.ActionResult
type ContentResult = class
    inherit ActionResult
Public Class ContentResult
Inherits ActionResult
상속
ContentResult

생성자

ContentResult()

ContentResult 클래스의 새 인스턴스를 초기화합니다.

속성

Content

콘텐츠를 가져오거나 설정합니다.

ContentEncoding

콘텐츠 인코딩을 가져오거나 설정합니다.

ContentType

콘텐츠의 형식을 가져오거나 설정합니다.

메서드

ExecuteResult(ControllerContext)

클래스에서 ActionResult 상속하는 사용자 지정 형식으로 작업 메서드의 결과를 처리할 수 있습니다.

적용 대상