ControllerBase.PhysicalFile 메서드

정의

오버로드

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

()로 physicalPath 지정된 파일, Content-Type으로 지정된 contentType 및 제안된 파일 이름으로 지정된 fileDownloadName 을 반환Status200OK합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

()로 physicalPath 지정된 파일, Content-Type으로 지정된 contentType 및 제안된 파일 이름으로 지정된 fileDownloadName 을 반환Status200OK합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

(Status200OK)로 physicalPath 지정된 파일과 Content-Type으로 지정된 contentType 를 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

PhysicalFile(String, String, String, Boolean)

가 Content-Type으로 지정 physicalPathcontentType 되고 이 제안된 파일 이름으로 지정된 (Status200OK)로 지정된 fileDownloadName 파일을 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

PhysicalFile(String, String)

가 Content-Type으로 지정된 physicalPath (Status200OK)로 지정된 contentType 파일을 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

PhysicalFile(String, String, String)

가 Content-Type으로 지정 physicalPathcontentType 되고 이 제안된 파일 이름으로 지정된 (Status200OK)로 지정된 fileDownloadName 파일을 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

PhysicalFile(String, String, Boolean)

가 Content-Type으로 지정된 physicalPath (Status200OK)로 지정된 contentType 파일을 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

(Status200OK)로 physicalPath 지정된 파일과 Content-Type으로 지정된 contentType 를 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

()로 physicalPath 지정된 파일, Content-Type으로 지정된 contentType 및 제안된 파일 이름으로 지정된 fileDownloadName 을 반환Status200OK합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue, enableRangeProcessing As Boolean) As PhysicalFileResult

매개 변수

physicalPath
String

파일의 경로입니다. 경로는 절대 경로여야 합니다.

contentType
String

파일의 Content-Type입니다.

fileDownloadName
String

제안된 파일 이름입니다.

lastModified
Nullable<DateTimeOffset>

DateTimeOffset 파일이 마지막으로 수정된 시기의 입니다.

entityTag
EntityTagHeaderValue

EntityTagHeaderValue 파일과 연결된 입니다.

enableRangeProcessing
Boolean

범위 요청 처리를 사용하도록 설정하려면 로 true 설정합니다.

반환

응답에 대해 만들어진 PhysicalFileResult 입니다.

특성

적용 대상

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

()로 physicalPath 지정된 파일, Content-Type으로 지정된 contentType 및 제안된 파일 이름으로 지정된 fileDownloadName 을 반환Status200OK합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue) As PhysicalFileResult

매개 변수

physicalPath
String

파일의 경로입니다. 경로는 절대 경로여야 합니다.

contentType
String

파일의 Content-Type입니다.

fileDownloadName
String

제안된 파일 이름입니다.

lastModified
Nullable<DateTimeOffset>

DateTimeOffset 파일이 마지막으로 수정된 시기의 입니다.

entityTag
EntityTagHeaderValue

EntityTagHeaderValue 파일과 연결된 입니다.

반환

응답에 대해 만들어진 PhysicalFileResult 입니다.

특성

적용 대상

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

(Status200OK)로 physicalPath 지정된 파일과 Content-Type으로 지정된 contentType 를 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue, enableRangeProcessing As Boolean) As PhysicalFileResult

매개 변수

physicalPath
String

파일의 경로입니다. 경로는 절대 경로여야 합니다.

contentType
String

파일의 Content-Type입니다.

lastModified
Nullable<DateTimeOffset>

DateTimeOffset 파일이 마지막으로 수정된 시기의 입니다.

entityTag
EntityTagHeaderValue

EntityTagHeaderValue 파일과 연결된 입니다.

enableRangeProcessing
Boolean

범위 요청 처리를 사용하도록 설정하려면 로 true 설정합니다.

반환

응답에 대해 만들어진 PhysicalFileResult 입니다.

특성

적용 대상

PhysicalFile(String, String, String, Boolean)

가 Content-Type으로 지정 physicalPathcontentType 되고 이 제안된 파일 이름으로 지정된 (Status200OK)로 지정된 fileDownloadName 파일을 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String, enableRangeProcessing As Boolean) As PhysicalFileResult

매개 변수

physicalPath
String

파일의 경로입니다. 경로는 절대 경로여야 합니다.

contentType
String

파일의 Content-Type입니다.

fileDownloadName
String

제안된 파일 이름입니다.

enableRangeProcessing
Boolean

범위 요청 처리를 사용하도록 설정하려면 로 true 설정합니다.

반환

응답에 대해 만들어진 PhysicalFileResult 입니다.

특성

적용 대상

PhysicalFile(String, String)

가 Content-Type으로 지정된 physicalPath (Status200OK)로 지정된 contentType 파일을 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String) As PhysicalFileResult

매개 변수

physicalPath
String

파일의 경로입니다. 경로는 절대 경로여야 합니다.

contentType
String

파일의 Content-Type입니다.

반환

응답에 대해 만들어진 PhysicalFileResult 입니다.

특성

적용 대상

PhysicalFile(String, String, String)

가 Content-Type으로 지정 physicalPathcontentType 되고 이 제안된 파일 이름으로 지정된 (Status200OK)로 지정된 fileDownloadName 파일을 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * string -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, fileDownloadName As String) As PhysicalFileResult

매개 변수

physicalPath
String

파일의 경로입니다. 경로는 절대 경로여야 합니다.

contentType
String

파일의 Content-Type입니다.

fileDownloadName
String

제안된 파일 이름입니다.

반환

응답에 대해 만들어진 PhysicalFileResult 입니다.

특성

적용 대상

PhysicalFile(String, String, Boolean)

가 Content-Type으로 지정된 physicalPath (Status200OK)로 지정된 contentType 파일을 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, bool enableRangeProcessing);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, bool enableRangeProcessing);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * bool -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, enableRangeProcessing As Boolean) As PhysicalFileResult

매개 변수

physicalPath
String

파일의 경로입니다. 경로는 절대 경로여야 합니다.

contentType
String

파일의 Content-Type입니다.

enableRangeProcessing
Boolean

범위 요청 처리를 사용하도록 설정하려면 로 true 설정합니다.

반환

응답에 대해 만들어진 PhysicalFileResult 입니다.

특성

적용 대상

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

(Status200OK)로 physicalPath 지정된 파일과 Content-Type으로 지정된 contentType 를 반환합니다. 범위 요청(Status206PartialContent 또는 Status416RangeNotSatisfiable 범위가 만족스럽지 않은 경우)을 지원합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, Nullable<DateTimeOffset> lastModified, Microsoft::Net::Http::Headers::EntityTagHeaderValue ^ entityTag);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, DateTimeOffset? lastModified, Microsoft.Net.Http.Headers.EntityTagHeaderValue entityTag);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
override this.PhysicalFile : string * string * Nullable<DateTimeOffset> * Microsoft.Net.Http.Headers.EntityTagHeaderValue -> Microsoft.AspNetCore.Mvc.PhysicalFileResult
Public Overridable Function PhysicalFile (physicalPath As String, contentType As String, lastModified As Nullable(Of DateTimeOffset), entityTag As EntityTagHeaderValue) As PhysicalFileResult

매개 변수

physicalPath
String

파일의 경로입니다. 경로는 절대 경로여야 합니다.

contentType
String

파일의 Content-Type입니다.

lastModified
Nullable<DateTimeOffset>

DateTimeOffset 파일이 마지막으로 수정된 시기의 입니다.

entityTag
EntityTagHeaderValue

EntityTagHeaderValue 파일과 연결된 입니다.

반환

응답에 대해 만들어진 PhysicalFileResult 입니다.

특성

적용 대상