Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

FileStreamHttpResult Class

Definition

Namespace:
Microsoft.AspNetCore.Http.HttpResults
Assembly:
Microsoft.AspNetCore.Http.Results.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
FileStreamHttpResult.cs

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 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

Name Description
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

Name Description
ExecuteAsync(HttpContext)

Write an HTTP response reflecting the result.

Applies to


Feedback

Was this page helpful?