InputStreamOverStream InputStreamOverStream InputStreamOverStream InputStreamOverStream Class

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

Syntax

Declaration

public sealed class InputStreamOverStreampublic sealed class InputStreamOverStreamPublic NotInheritable Class InputStreamOverStream

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.

Returns an asynchronous byte reader object.

Methods

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

    Closes the current stream and releases system resources.

    public void Close()public void Close()Public Function Close() As void
  • ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
    ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
    ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)
    ReadAsync(Windows.Storage.Streams.IBuffer,System.UInt32,Windows.Storage.Streams.InputStreamOptions)

    Returns an asynchronous byte reader object.

    public IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(Windows.Storage.Streams.IBuffer buffer,System.UInt32 count,Windows.Storage.Streams.InputStreamOptions options)public IAsyncOperationWithProgress<IBuffer, uint> ReadAsync(Windows.Storage.Streams.IBuffer buffer,System.UInt32 count,Windows.Storage.Streams.InputStreamOptions options)Public Function ReadAsync(buffer As Windows.Storage.Streams.IBuffer,count As System.UInt32,options As Windows.Storage.Streams.InputStreamOptions) As IAsyncOperationWithProgress( Of IBuffer, uint )

    Parameters

    Returns

    • The asynchronous operation.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

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

Details

Assembly

Windows.Storage.Streams.dll