Share via


VirtualFileHttpResult Class

Definition

A IResult that on execution writes the file specified using a virtual path to the response using mechanisms provided by the host.

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

Properties

ContentType

Gets the Content-Type header for the response.

EnableRangeProcessing System.Object.EnableRangeProcessing
EntityTag System.Object.EntityTag
FileDownloadName

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

FileLength System.Object.FileLength
FileName

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

LastModified System.Object.LastModified

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Applies to