RandomAccessStream.CopyAndCloseAsync(IInputStream, IOutputStream) メソッド

定義

ソース ストリームをコピー先ストリームにコピーし、コピー操作が完了するまで待機します。

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)

パラメーター

source
IInputStream

データのコピー元のストリーム。

destination
IOutputStream

データのコピー先のストリーム。

戻り値

IAsyncOperationWithProgress<UInt64,UInt64>

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

IAsyncOperationWithProgress<uint64_t,uint64_t>

バイト ライター操作。 最初の整数は、書き込まれたバイト数を表します。 2 番目の整数は、書き込み操作の進行状況を表します。

属性

注釈

CopyAndCloseAsync メソッドは CopyAsync に似ていますが、非同期操作が完了する前に、出力ストリームで FlushAsyncClose を呼び出して待機します。

適用対象

こちらもご覧ください