FileContentResult 클래스

정의

이진 파일의 내용을 응답에 보냅니다.

public class FileContentResult : System.Web.Mvc.FileResult
type FileContentResult = class
    inherit FileResult
Public Class FileContentResult
Inherits FileResult
상속
FileContentResult

생성자

FileContentResult(Byte[], String)

지정된 파일 콘텐츠 및 콘텐츠 형식을 FileContentResult 사용하여 클래스의 새 instance 초기화합니다.

속성

ContentType

응답에 사용할 콘텐츠 형식을 가져옵니다.

(다음에서 상속됨 FileResult)
FileContents

응답에 보낼 이진 콘텐츠입니다.

FileDownloadName

지정된 파일 이름이 포함된 파일 다운로드 대화 상자가 브라우저에 표시되도록 콘텐츠 처리 헤더를 가져오거나 설정합니다.

(다음에서 상속됨 FileResult)

메서드

ExecuteResult(ControllerContext)

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

(다음에서 상속됨 FileResult)
WriteFile(HttpResponseBase)

응답에 파일 내용을 씁니다.

적용 대상