OutputStreamOverStream OutputStreamOverStream OutputStreamOverStream OutputStreamOverStream Class

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

Syntax

Declaration

public sealed class OutputStreamOverStreampublic sealed class OutputStreamOverStreamPublic NotInheritable Class OutputStreamOverStream

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 summary

Closes the current stream and releases system resources.

Flushes data asynchronously in a sequential stream.

Writes data asynchronously in a sequential stream.

Methods

  • Close()
    Close()
    Close()
    Close()

    Closes the current stream and releases system resources.

    public void Close()public void Close()Public Function Close() As void
  • FlushAsync()
    FlushAsync()
    FlushAsync()
    FlushAsync()

    Flushes data asynchronously in a sequential stream.

    public IAsyncOperation<bool> FlushAsync()public IAsyncOperation<bool> FlushAsync()Public Function FlushAsync() As IAsyncOperation( Of bool )

    Returns

    • The stream flush operation.

  • WriteAsync(Windows.Storage.Streams.IBuffer)
    WriteAsync(Windows.Storage.Streams.IBuffer)
    WriteAsync(Windows.Storage.Streams.IBuffer)
    WriteAsync(Windows.Storage.Streams.IBuffer)

    Writes data asynchronously in a sequential stream.

    public IAsyncOperationWithProgress<uint, uint> WriteAsync(Windows.Storage.Streams.IBuffer buffer)public IAsyncOperationWithProgress<uint, uint> WriteAsync(Windows.Storage.Streams.IBuffer buffer)Public Function WriteAsync(buffer As Windows.Storage.Streams.IBuffer) As IAsyncOperationWithProgress( Of uint, uint )

    Parameters

    Returns

    • The byte writer operation.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Storage.Streams.dll