Partilhar via


FileResultExecutorBase.WriteFileAsync Método

Definição

Escreva o conteúdo do fileStream no corpo da resposta.

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

Parâmetros

fileStream
Stream

O fileStream a ser gravado.

rangeLength
Int64

O comprimento do intervalo.

Retornos

A tarefa assíncrona.

Aplica-se a