StreamResponseBodyFeature.SendFileAsync Metodo

Definizione

Copia il segmento di file specificato nel flusso di risposta specificato. Questo chiama StartAsync se non è stato chiamato in precedenza.

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

Parametri

path
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

Implementazioni

Si applica a