Partager via


FileResultExecutorBase.WriteFileAsync Méthode

Définition

Écrivez le contenu de fileStream dans le corps de la réponse.

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

Paramètres

context
HttpContext

L’HttpContextopérateur

fileStream
Stream

FileStream à écrire.

rangeLength
Int64

Longueur de plage.

Retours

Tâche asynchrone.

S’applique à