SendFileFallback.SendFileAsync Metodo

Definizione

Copia il segmento del file nel flusso di destinazione.

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

Parametri

destination
Stream

Flusso in cui scrivere il segmento di file.

filePath
String

Percorso del disco completo del file.

offset
Int64

Offset nel file da avviare all'inizio.

count
Nullable<Int64>

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

cancellationToken
CancellationToken

Oggetto CancellationToken usato per interrompere la trasmissione.

Restituisce

Si applica a