Share via


PageModel.PhysicalFile 메서드

정의

오버로드

PhysicalFile(String, String)

가 Content-Type으로 지정된 physicalPath (Status200OK)로 지정된 contentType 파일을 반환합니다.

PhysicalFile(String, String, String)

가 Content-Type으로 지정되고 가 제안된 파일 physicalPath 이름으로 지정된 contentType (Status200OK)로 지정된 fileDownloadName 파일을 반환합니다.

PhysicalFile(String, String)

Source:
PageModel.cs
Source:
PageModel.cs

가 Content-Type으로 지정된 physicalPath (Status200OK)로 지정된 contentType 파일을 반환합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType);
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType);
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)

Source:
PageModel.cs
Source:
PageModel.cs

가 Content-Type으로 지정되고 가 제안된 파일 physicalPath 이름으로 지정된 contentType (Status200OK)로 지정된 fileDownloadName 파일을 반환합니다.

public:
 virtual Microsoft::AspNetCore::Mvc::PhysicalFileResult ^ PhysicalFile(System::String ^ physicalPath, System::String ^ contentType, System::String ^ fileDownloadName);
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string fileDownloadName);
public virtual Microsoft.AspNetCore.Mvc.PhysicalFileResult PhysicalFile (string physicalPath, string contentType, string? fileDownloadName);
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 입니다.

적용 대상