PhysicalFileResult 클래스

정의

FileResult 실행 중인 은 호스트에서 제공하는 메커니즘을 사용하여 디스크에서 응답에 파일을 씁니다.

public ref class PhysicalFileResult : Microsoft::AspNetCore::Mvc::FileResult
public class PhysicalFileResult : Microsoft.AspNetCore.Mvc.FileResult
type PhysicalFileResult = class
    inherit FileResult
Public Class PhysicalFileResult
Inherits FileResult
상속
PhysicalFileResult

생성자

PhysicalFileResult(String, MediaTypeHeaderValue)

제공된 fileNamecontentType를 사용하여 새 PhysicalFileResult instance 만듭니다.

PhysicalFileResult(String, String)

제공된 fileNamecontentType를 사용하여 새 PhysicalFileResult instance 만듭니다.

속성

ContentType

응답에 대한 Content-Type 헤더를 가져옵니다.

(다음에서 상속됨 FileResult)
EnableRangeProcessing

에 대한 FileResult범위 처리를 사용하도록 설정하는 값을 가져오거나 설정합니다.

(다음에서 상속됨 FileResult)
EntityTag

FileResult연결된 etag를 가져오거나 설정합니다.

(다음에서 상속됨 FileResult)
FileDownloadName

응답의 Content-Disposition 헤더에 사용할 파일 이름을 가져옵니다.

(다음에서 상속됨 FileResult)
FileName

응답으로 다시 전송될 파일의 경로를 가져오거나 설정합니다.

LastModified

와 연결된 마지막으로 수정된 FileResult정보를 가져오거나 설정합니다.

(다음에서 상속됨 FileResult)

메서드

ExecuteResult(ActionContext)

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

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

동작 메서드의 결과 작업을 비동기적으로 실행합니다. MVC에서 이 메서드를 호출하여 작업 메서드의 결과를 처리합니다. 이 메서드의 기본 구현은 메서드를 ExecuteResult(ActionContext) 호출하고 완료된 작업을 반환합니다.

적용 대상