SendFileFallback.SendFileAsync Metoda

Definice

Zkopíruje segment souboru do cílového datového proudu.

public:
 static System::Threading::Tasks::Task ^ SendFileAsync(System::IO::Stream ^ destination, System::String ^ filePath, long offset, Nullable<long> count, System::Threading::CancellationToken cancellationToken);
public static System.Threading.Tasks.Task SendFileAsync (System.IO.Stream destination, string filePath, long offset, long? count, System.Threading.CancellationToken cancellationToken);
static member SendFileAsync : System.IO.Stream * string * int64 * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function SendFileAsync (destination As Stream, filePath As String, offset As Long, count As Nullable(Of Long), cancellationToken As CancellationToken) As Task

Parametry

destination
Stream

Datový proud pro zápis segmentu souboru do.

filePath
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

Slouží CancellationToken k přerušení přenosu.

Návraty

Task

Platí pro