SendFileFallback.SendFileAsync Méthode

Définition

Copie le segment du fichier dans le flux de destination.

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

Paramètres

destination
Stream

Flux dans lequel écrire le segment de fichier.

filePath
String

Chemin d’accès complet du disque au fichier.

offset
Int64

Décalage dans le fichier à partir de.

count
Nullable<Int64>

Nombre d’octets à envoyer, ou null pour envoyer le reste du fichier.

cancellationToken
CancellationToken

CancellationToken utilisé pour abandonner la transmission.

Retours

S’applique à