StreamResponseBodyFeature.SendFileAsync Metoda

Definice

Zkopíruje zadaný segment souboru do daného streamu odpovědí. Tato funkce volá Metodu StartAsync, pokud nebyla dříve volána.

public:
 virtual System::Threading::Tasks::Task ^ SendFileAsync(System::String ^ path, long offset, Nullable<long> count, System::Threading::CancellationToken cancellationToken);
public virtual System.Threading.Tasks.Task SendFileAsync (string path, long offset, long? count, System.Threading.CancellationToken cancellationToken);
abstract member SendFileAsync : string * int64 * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SendFileAsync : string * int64 * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function SendFileAsync (path As String, offset As Long, count As Nullable(Of Long), cancellationToken As CancellationToken) As Task

Parametry

path
String

Úplná cesta k souboru.

offset
Int64

Posun v souboru, na který se má začít.

count
Nullable<Int64>

Počet bajtů, které se mají odeslat, nebo null pro odeslání zbytku souboru

cancellationToken
CancellationToken

Došlo CancellationToken k přerušení přenosu.

Návraty

Task

Implementuje

Platí pro