FileResult 클래스

정의

이진 파일의 내용을 응답에 보내는 데 사용되는 기본 클래스를 나타냅니다.

public abstract class FileResult : System.Web.Mvc.ActionResult
type FileResult = class
    inherit ActionResult
Public MustInherit Class FileResult
Inherits ActionResult
상속
FileResult
파생

생성자

FileResult(String)

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

속성

ContentType

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

FileDownloadName

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

메서드

ExecuteResult(ControllerContext)

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

WriteFile(HttpResponseBase)

응답에 파일을 씁니다.

적용 대상