FileStreamHttpResult Class

Definition

Represents an IResult that when executed will write a file from a stream to the response.

public sealed class FileStreamHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IFileHttpResult, Microsoft.AspNetCore.Http.IResult
type FileStreamHttpResult = class
    interface IResult
    interface IFileHttpResult
    interface IContentTypeHttpResult
Public NotInheritable Class FileStreamHttpResult
Implements IContentTypeHttpResult, IFileHttpResult, IResult
Inheritance
FileStreamHttpResult
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 .

FileStream

Gets the stream with 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