OutputStreamOverStream OutputStreamOverStream OutputStreamOverStream OutputStreamOverStream OutputStreamOverStream Class

Definition

Provides a Windows Runtime output stream for an IStream base implementation.

public : sealed class OutputStreamOverStream : IClosable, IOutputStream
struct winrt::Windows::Storage::Streams::OutputStreamOverStream : IClosable, IOutputStream
public sealed class OutputStreamOverStream : IDisposable, IOutputStream
Public NotInheritable Class OutputStreamOverStream Implements IDisposable, IOutputStream
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The InputStreamOverStream, OutputStreamOverStream, and RandomAccessStreamOverStream classes are interop helpers to convert between the Windows Runtime stream types, which are natively asynchronous, and the Component Object Model (COM) IStream types, which are natively synchronous.

These helper classes make it easier for to reuse legacy code when you transition to the Windows Runtime stream types.

Methods

Close() Close() Close() Close() Close()

Closes the current stream and releases system resources.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FlushAsync() FlushAsync() FlushAsync() FlushAsync() FlushAsync()

Flushes data asynchronously in a sequential stream.

WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer)

Writes data asynchronously in a sequential stream.

See Also