IOutputStream.WriteAsync(IBuffer) メソッド

定義

シーケンシャル ストリームに非同期的にデータを書き込みます。

public:
 IAsyncOperationWithProgress<unsigned int, unsigned int> ^ WriteAsync(IBuffer ^ buffer);
IAsyncOperationWithProgress<uint32_t, uint32_t> WriteAsync(IBuffer const& buffer);
public IAsyncOperationWithProgress<uint,uint> WriteAsync(IBuffer buffer);
function writeAsync(buffer)
Public Function WriteAsync (buffer As IBuffer) As IAsyncOperationWithProgress(Of UInteger, UInteger)

パラメーター

buffer
IBuffer

書き込むデータを格納するバッファー。

戻り値

IAsyncOperationWithProgress<UInt32,UInt32>

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

IAsyncOperationWithProgress<uint32_t,uint32_t>

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

注釈

一部のストリーム実装では、書き込み操作のキューがサポートされています。 この場合、WriteAsync メソッドの非同期実行は 、FlushAsync メソッドが完了するまで完了しません。 buffer パラメーターの場合、IBuffer インターフェイスを実装する必要はありません。 代わりに、 Buffer クラスのインスタンスを作成するか、 CryptographicBuffer クラスのメソッドを使用してバッファーを作成できます。

また、DataWriter クラスの WriteBuffer メソッドを使用して、IOutputStream にバッファーを書き込むこともできます。

適用対象