FileContentHttpResult Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |