FileContentHttpResult Class

Definition

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

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

FileContents

Gets or sets the file contents.

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 .

LastModified

Gets the last modified information associated with the file result.

Methods

ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Applies to