Dela via


FileStreamResult Constructors

Definition

Overloads

FileStreamResult(Stream, MediaTypeHeaderValue)

Creates a new FileStreamResult instance with the provided fileStream and the provided contentType.

FileStreamResult(Stream, String)

Creates a new FileStreamResult instance with the provided fileStream and the provided contentType.

FileStreamResult(Stream, MediaTypeHeaderValue)

Source:
FileStreamResult.cs
Source:
FileStreamResult.cs
Source:
FileStreamResult.cs

Creates a new FileStreamResult instance with the provided fileStream and the provided contentType.

public:
 FileStreamResult(System::IO::Stream ^ fileStream, Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^ contentType);
public FileStreamResult (System.IO.Stream fileStream, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType);
new Microsoft.AspNetCore.Mvc.FileStreamResult : System.IO.Stream * Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> Microsoft.AspNetCore.Mvc.FileStreamResult
Public Sub New (fileStream As Stream, contentType As MediaTypeHeaderValue)

Parameters

fileStream
Stream

The stream with the file.

contentType
MediaTypeHeaderValue

The Content-Type header of the response.

Applies to

FileStreamResult(Stream, String)

Source:
FileStreamResult.cs
Source:
FileStreamResult.cs
Source:
FileStreamResult.cs

Creates a new FileStreamResult instance with the provided fileStream and the provided contentType.

public:
 FileStreamResult(System::IO::Stream ^ fileStream, System::String ^ contentType);
public FileStreamResult (System.IO.Stream fileStream, string contentType);
new Microsoft.AspNetCore.Mvc.FileStreamResult : System.IO.Stream * string -> Microsoft.AspNetCore.Mvc.FileStreamResult
Public Sub New (fileStream As Stream, contentType As String)

Parameters

fileStream
Stream

The stream with the file.

contentType
String

The Content-Type header of the response.

Applies to