SendFileResponseExtensions.SendFileAsync Método

Definición

Sobrecargas

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

Envía el archivo dado mediante la extensión SendFile.

SendFileAsync(HttpResponse, String, CancellationToken)

Envía el archivo dado mediante la extensión SendFile.

SendFileAsync(HttpResponse, IFileInfo, Int64, Nullable<Int64>, CancellationToken)

Envía el archivo dado mediante la extensión SendFile.

SendFileAsync(HttpResponse, String, Int64, Nullable<Int64>, CancellationToken)

Envía el archivo dado mediante la extensión SendFile.

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

Envía el archivo dado mediante la extensión SendFile.

public static System.Threading.Tasks.Task SendFileAsync (this Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Extensions.FileProviders.IFileInfo file, System.Threading.CancellationToken cancellationToken = default);
static member SendFileAsync : Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Extensions.FileProviders.IFileInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendFileAsync (response As HttpResponse, file As IFileInfo, Optional cancellationToken As CancellationToken = Nothing) As Task

Parámetros

response
HttpResponse
file
IFileInfo

Archivo.

Devoluciones

Se aplica a

SendFileAsync(HttpResponse, String, CancellationToken)

Envía el archivo dado mediante la extensión SendFile.

public static System.Threading.Tasks.Task SendFileAsync (this Microsoft.AspNetCore.Http.HttpResponse response, string fileName, System.Threading.CancellationToken cancellationToken = default);
static member SendFileAsync : Microsoft.AspNetCore.Http.HttpResponse * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendFileAsync (response As HttpResponse, fileName As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parámetros

response
HttpResponse
fileName
String

Ruta de acceso completa al archivo.

Devoluciones

Se aplica a

SendFileAsync(HttpResponse, IFileInfo, Int64, Nullable<Int64>, CancellationToken)

Envía el archivo dado mediante la extensión SendFile.

public static System.Threading.Tasks.Task SendFileAsync (this Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Extensions.FileProviders.IFileInfo file, long offset, long? count, System.Threading.CancellationToken cancellationToken = default);
static member SendFileAsync : Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Extensions.FileProviders.IFileInfo * int64 * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendFileAsync (response As HttpResponse, file As IFileInfo, offset As Long, count As Nullable(Of Long), Optional cancellationToken As CancellationToken = Nothing) As Task

Parámetros

response
HttpResponse
file
IFileInfo

Archivo.

offset
Int64

Desplazamiento en el archivo.

count
Nullable<Int64>

Número de bytes que se van a enviar o null para enviar el resto del archivo.

cancellationToken
CancellationToken

Devoluciones

Se aplica a

SendFileAsync(HttpResponse, String, Int64, Nullable<Int64>, CancellationToken)

Envía el archivo dado mediante la extensión SendFile.

public static System.Threading.Tasks.Task SendFileAsync (this Microsoft.AspNetCore.Http.HttpResponse response, string fileName, long offset, long? count, System.Threading.CancellationToken cancellationToken = default);
static member SendFileAsync : Microsoft.AspNetCore.Http.HttpResponse * string * int64 * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function SendFileAsync (response As HttpResponse, fileName As String, offset As Long, count As Nullable(Of Long), Optional cancellationToken As CancellationToken = Nothing) As Task

Parámetros

response
HttpResponse
fileName
String

Ruta de acceso completa al archivo.

offset
Int64

Desplazamiento en el archivo.

count
Nullable<Int64>

Número de bytes que se van a enviar o null para enviar el resto del archivo.

cancellationToken
CancellationToken

Devoluciones

Se aplica a