Table of Contents

Class FileStreamResult

Namespace
GroupeIsa.Neos.Shared.IO
Assembly
GroupeIsa.Neos.Shared.dll

Represents a IFileResult that when executed will write a binary file to the response.

public class FileStreamResult : IFileStreamResult, IFileResult
Inheritance
FileStreamResult
Implements
Inherited Members

Constructors

FileStreamResult(string, Stream, string?)

Initializes a new instance of the FileStreamResult class.

public FileStreamResult(string contentType, Stream fileStream, string? fileName = null)

Parameters

contentType string

The Content-Type header for the response.

fileStream Stream

The stream with the file that will be sent back as the response..

fileName string

The file name.

Properties

ContentType

Gets the Content-Type header for the response.

public string ContentType { get; }

Property Value

string

FileName

Gets the file name.

public string? FileName { get; }

Property Value

string

FileStream

Gets the stream with the file that will be sent back as the response.

public Stream FileStream { get; }

Property Value

Stream