SendFileResponseExtensions.SendFileAsync Metoda

Definicja

Przeciążenia

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

Wysyła dany plik przy użyciu rozszerzenia SendFile.

SendFileAsync(HttpResponse, String, CancellationToken)

Wysyła dany plik przy użyciu rozszerzenia SendFile.

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

Wysyła dany plik przy użyciu rozszerzenia SendFile.

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

Wysyła dany plik przy użyciu rozszerzenia SendFile.

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

Źródło:
SendFileResponseExtensions.cs
Źródło:
SendFileResponseExtensions.cs

Wysyła dany plik przy użyciu rozszerzenia 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

Parametry

response
HttpResponse
file
IFileInfo

Plik.

cancellationToken
CancellationToken

Element CancellationToken.

Zwraca

Dotyczy

SendFileAsync(HttpResponse, String, CancellationToken)

Źródło:
SendFileResponseExtensions.cs
Źródło:
SendFileResponseExtensions.cs

Wysyła dany plik przy użyciu rozszerzenia 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

Parametry

response
HttpResponse
fileName
String

Pełna ścieżka do pliku.

cancellationToken
CancellationToken

Element CancellationToken.

Zwraca

Dotyczy

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

Źródło:
SendFileResponseExtensions.cs
Źródło:
SendFileResponseExtensions.cs

Wysyła dany plik przy użyciu rozszerzenia 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

Parametry

response
HttpResponse
file
IFileInfo

Plik.

offset
Int64

Przesunięcie w pliku.

count
Nullable<Int64>

Liczba bajtów do wysłania lub wartość null w celu wysłania pozostałej części pliku.

cancellationToken
CancellationToken

Zwraca

Dotyczy

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

Źródło:
SendFileResponseExtensions.cs
Źródło:
SendFileResponseExtensions.cs

Wysyła dany plik przy użyciu rozszerzenia 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

Parametry

response
HttpResponse
fileName
String

Pełna ścieżka do pliku.

offset
Int64

Przesunięcie w pliku.

count
Nullable<Int64>

Liczba bajtów do wysłania lub wartość null w celu wysłania pozostałej części pliku.

cancellationToken
CancellationToken

Zwraca

Dotyczy