Share via


SendFileResponseExtensions.SendFileAsync Methode

Definition

Überlädt

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

Sendet die angegebene Datei mithilfe der Erweiterung SendFile.

SendFileAsync(HttpResponse, String, CancellationToken)

Sendet die angegebene Datei mithilfe der Erweiterung SendFile.

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

Sendet die angegebene Datei mithilfe der Erweiterung SendFile.

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

Sendet die angegebene Datei mithilfe der Erweiterung SendFile.

SendFileAsync(HttpResponse, IFileInfo, CancellationToken)

Quelle:
SendFileResponseExtensions.cs
Quelle:
SendFileResponseExtensions.cs

Sendet die angegebene Datei mithilfe der Erweiterung 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

Parameter

response
HttpResponse
file
IFileInfo

Die Datei.

cancellationToken
CancellationToken

Die CancellationToken.

Gibt zurück

Gilt für:

SendFileAsync(HttpResponse, String, CancellationToken)

Quelle:
SendFileResponseExtensions.cs
Quelle:
SendFileResponseExtensions.cs

Sendet die angegebene Datei mithilfe der Erweiterung 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

Parameter

response
HttpResponse
fileName
String

Der vollständige Pfad zur Datei.

cancellationToken
CancellationToken

Die CancellationToken.

Gibt zurück

Gilt für:

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

Quelle:
SendFileResponseExtensions.cs
Quelle:
SendFileResponseExtensions.cs

Sendet die angegebene Datei mithilfe der Erweiterung 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

Parameter

response
HttpResponse
file
IFileInfo

Die Datei.

offset
Int64

Der Offset in der Datei.

count
Nullable<Int64>

Die Anzahl der zu sendenden Bytes oder null, um den Rest der Datei zu senden.

cancellationToken
CancellationToken

Gibt zurück

Gilt für:

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

Quelle:
SendFileResponseExtensions.cs
Quelle:
SendFileResponseExtensions.cs

Sendet die angegebene Datei mithilfe der Erweiterung 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

Parameter

response
HttpResponse
fileName
String

Der vollständige Pfad zur Datei.

offset
Int64

Der Offset in der Datei.

count
Nullable<Int64>

Die Anzahl der zu sendenden Bytes oder null, um den Rest der Datei zu senden.

cancellationToken
CancellationToken

Gibt zurück

Gilt für: