SendFileResponseExtensions.SendFileAsync Método
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
SendFileAsync(HttpResponse, IFileInfo, CancellationToken) |
Envia o arquivo especificado usando a extensão SendFile. |
SendFileAsync(HttpResponse, String, CancellationToken) |
Envia o arquivo especificado usando a extensão SendFile. |
SendFileAsync(HttpResponse, IFileInfo, Int64, Nullable<Int64>, CancellationToken) |
Envia o arquivo especificado usando a extensão SendFile. |
SendFileAsync(HttpResponse, String, Int64, Nullable<Int64>, CancellationToken) |
Envia o arquivo especificado usando a extensão SendFile. |
Envia o arquivo especificado usando a extensão 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
O arquivo.
- cancellationToken
- CancellationToken
Retornos
Aplica-se a
Envia o arquivo especificado usando a extensão 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
O caminho completo para o arquivo.
- cancellationToken
- CancellationToken
Retornos
Aplica-se a
Envia o arquivo especificado usando a extensão 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
O arquivo.
- offset
- Int64
O deslocamento no arquivo.
- cancellationToken
- CancellationToken
Retornos
Aplica-se a
Envia o arquivo especificado usando a extensão 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
O caminho completo para o arquivo.
- offset
- Int64
O deslocamento no arquivo.
- cancellationToken
- CancellationToken