Share via


PhysicalFileHttpResult Class

Definition

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

public sealed class PhysicalFileHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IResult
type PhysicalFileHttpResult = class
    interface IResult
    interface IFileHttpResult
    interface IContentTypeHttpResult
Public NotInheritable Class PhysicalFileHttpResult
Implements IContentTypeHttpResult, IFileHttpResult, IResult
Inheritance
PhysicalFileHttpResult
Implements

Properties

ContentType

Gets the Content-Type header for the response.

EnableRangeProcessing

Gets the value that enables range processing for the file result.

EntityTag

Gets the etag associated with the file result.

FileDownloadName

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

FileLength

Gets or sets the file length information .

FileName

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

LastModified

Gets the last modified information associated with the file result.

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Applies to