Share via


ProtectedFileStream.WriteAsync method

Writes data asynchronously to the protected file. Implements the IOutputStream.WriteAsync method.

Syntax

public:
virtual IAsyncOperationWithProgress<IBuffer, UInt32>^ WriteAsync(
  IBuffer^ buffer
)

Parameters

buffer

Type: IBuffer

The buffer into which the asynchronous write operation writes.

Return value

Type: IAsyncOperationWithProgress<IBuffer, UInt32>

The byte writer operation.

Remarks

[!Warning]
To avoid data loss and/or corruption, FlushAsync must be called if you modify the created stream or before object disposal.

Requirements

Minimum supported client
None supported
Minimum supported server
None supported
Minimum supported phone
Windows Phone 8.1
Namespace
Microsoft::RightsManagement
Metadata
Microsoft.RightsManagement.winmd

See also

ProtectedFileStream