PhysicalFileResult PhysicalFileResult PhysicalFileResult PhysicalFileResult Class

Definition

A FileResult on execution will write a file from disk to the response using mechanisms provided by the host.

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
Inheritance

Constructors

PhysicalFileResult(String, MediaTypeHeaderValue) PhysicalFileResult(String, MediaTypeHeaderValue) PhysicalFileResult(String, MediaTypeHeaderValue) PhysicalFileResult(String, MediaTypeHeaderValue)

Creates a new PhysicalFileResult instance with the provided fileName and the provided contentType.

PhysicalFileResult(String, String) PhysicalFileResult(String, String) PhysicalFileResult(String, String) PhysicalFileResult(String, String)

Creates a new PhysicalFileResult instance with the provided fileName and the provided contentType.

Properties

ContentType ContentType ContentType ContentType

Gets the Content-Type header for the response.

(Inherited from FileResult)
EnableRangeProcessing EnableRangeProcessing EnableRangeProcessing EnableRangeProcessing

Gets or sets the value that enables range processing for the FileResult.

(Inherited from FileResult)
EntityTag EntityTag EntityTag EntityTag

Gets or sets the etag associated with the FileResult.

(Inherited from FileResult)
FileDownloadName FileDownloadName FileDownloadName FileDownloadName

Gets the file name that will be used in the Content-Disposition header of the response.

(Inherited from FileResult)
FileName FileName FileName FileName

Gets or sets the path to the file that will be sent back as the response.

LastModified LastModified LastModified LastModified

Gets or sets the last modified information associated with the FileResult.

(Inherited from FileResult)

Methods

ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext) ExecuteResult(ActionContext)

Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method.

(Inherited from ActionResult)
ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext) ExecuteResultAsync(ActionContext)

Applies to