SendFileResponseExtensions.SendFileAsync Metodo

Definizione

Overload

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

Invia il file specificato usando l'estensione SendFile.

SendFileAsync(HttpResponse, String, CancellationToken)

Invia il file specificato usando l'estensione SendFile.

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

Invia il file specificato usando l'estensione SendFile.

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

Invia il file specificato usando l'estensione SendFile.

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

Origine:
SendFileResponseExtensions.cs
Origine:
SendFileResponseExtensions.cs
Origine:
SendFileResponseExtensions.cs

Invia il file specificato usando l'estensione 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

Parametri

response
HttpResponse
file
IFileInfo

File.

cancellationToken
CancellationToken

Oggetto CancellationToken.

Restituisce

Si applica a

SendFileAsync(HttpResponse, String, CancellationToken)

Origine:
SendFileResponseExtensions.cs
Origine:
SendFileResponseExtensions.cs
Origine:
SendFileResponseExtensions.cs

Invia il file specificato usando l'estensione 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

Parametri

response
HttpResponse
fileName
String

Percorso completo del file.

cancellationToken
CancellationToken

Oggetto CancellationToken.

Restituisce

Si applica a

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

Origine:
SendFileResponseExtensions.cs
Origine:
SendFileResponseExtensions.cs
Origine:
SendFileResponseExtensions.cs

Invia il file specificato usando l'estensione 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

Parametri

response
HttpResponse
file
IFileInfo

File.

offset
Int64

Offset nel file.

count
Nullable<Int64>

Numero di byte da inviare o Null per inviare il resto del file.

cancellationToken
CancellationToken

Restituisce

Si applica a

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

Origine:
SendFileResponseExtensions.cs
Origine:
SendFileResponseExtensions.cs
Origine:
SendFileResponseExtensions.cs

Invia il file specificato usando l'estensione 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

Parametri

response
HttpResponse
fileName
String

Percorso completo del file.

offset
Int64

Offset nel file.

count
Nullable<Int64>

Numero di byte da inviare o Null per inviare il resto del file.

cancellationToken
CancellationToken

Restituisce

Si applica a