Share via


RandomAccessStream.CopyAndCloseAsync(IInputStream, IOutputStream) Methode

Definition

Kopiert einen Quellstream in einen Zieldatenstrom und wartet, bis der Kopiervorgang abgeschlossen ist.

public:
 static IAsyncOperationWithProgress<unsigned long long, unsigned long long> ^ CopyAndCloseAsync(IInputStream ^ source, IOutputStream ^ destination);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperationWithProgress<uint64_t, uint64_t> CopyAndCloseAsync(IInputStream const& source, IOutputStream const& destination);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperationWithProgress<ulong,ulong> CopyAndCloseAsync(IInputStream source, IOutputStream destination);
function copyAndCloseAsync(source, destination)
Public Shared Function CopyAndCloseAsync (source As IInputStream, destination As IOutputStream) As IAsyncOperationWithProgress(Of ULong, ULong)

Parameter

source
IInputStream

Der Stream, aus dem Daten kopiert werden sollen.

destination
IOutputStream

Der Stream, in den Daten kopiert werden sollen.

Gibt zurück

IAsyncOperationWithProgress<UInt64,UInt64>

Windows.Foundation.IAsyncOperationWithProgress<unsigned long long,unsigned long long>

IAsyncOperationWithProgress<uint64_t,uint64_t>

Der Byte writer-Vorgang. Die erste ganze Zahl stellt die Anzahl der geschriebenen Bytes dar. Die zweite ganze Zahl stellt den Fortschritt des Schreibvorgangs dar.

Attribute

Hinweise

Die CopyAndCloseAsync-Methode ähnelt CopyAsync , ruft aber auch flushAsync und Close für den Ausgabedatenstrom auf, bevor der asynchrone Vorgang abgeschlossen ist.

Gilt für:

Weitere Informationen