ProtectedFileStream.FlushAsync method

Flushes the data asynchronously to the protected file. Implements the IOutputStream.FlushAsync method.

Syntax

public:
virtual IAsyncOperation<bool> FlushAsync()

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<Boolean>

The stream flush operation. null is returned if an exception occurs. Upon completion, IAsyncOperation.GetResults returns True if the file has been successfully flushed; otherwise, false.

Remarks

[!Warning]
To avoid data loss and/or corruption, FlushAsync must be called 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