FileResultExecutorBase.WriteFileAsync Method
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.
Write the contents of the fileStream to the response body.
protected:
static System::Threading::Tasks::Task ^ WriteFileAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::IO::Stream ^ fileStream, Microsoft::Net::Http::Headers::RangeItemHeaderValue ^ range, long rangeLength);
protected static System.Threading.Tasks.Task WriteFileAsync (Microsoft.AspNetCore.Http.HttpContext context, System.IO.Stream fileStream, Microsoft.Net.Http.Headers.RangeItemHeaderValue range, long rangeLength);
protected static System.Threading.Tasks.Task WriteFileAsync (Microsoft.AspNetCore.Http.HttpContext context, System.IO.Stream fileStream, Microsoft.Net.Http.Headers.RangeItemHeaderValue? range, long rangeLength);
static member WriteFileAsync : Microsoft.AspNetCore.Http.HttpContext * System.IO.Stream * Microsoft.Net.Http.Headers.RangeItemHeaderValue * int64 -> System.Threading.Tasks.Task
Protected Shared Function WriteFileAsync (context As HttpContext, fileStream As Stream, range As RangeItemHeaderValue, rangeLength As Long) As Task
Parameters
- context
- HttpContext
The HttpContext.
- fileStream
- Stream
The fileStream to write.
- range
- RangeItemHeaderValue
The RangeItemHeaderValue.
- rangeLength
- Int64
The range length.
Returns
The async task.