IOutputStream::WriteAsync method
Creates an asynchronous byte writer operation object.
Syntax
HRESULT WriteAsync(
[in] IBuffer *buffer,
[out, retval] IAsyncOperationWithProgress<IBuffer *, UINT32> **operation
);
Parameters
- buffer [in]
-
The buffer into which the asynchronous write operation writes the bytes.
- operation [out, retval]
-
The asynchronous operation for writing the byte stream.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Calling any method before all preceding calls have completed on this instance produces unspecified and non-deterministic results.
Requirements
|
Minimum supported client |
Windows 8 |
|---|---|
|
Minimum supported server |
Windows Server 2012 |
|
Header |
|
|
IDL |
|
See also