WindowsRuntimeBufferExtensions.AsStream(IBuffer) Method

Definition

Important

This API is not CLS-compliant.

Returns a stream that represents the same memory that the specified Windows.Storage.Streams.IBuffer interface represents.

[System.CLSCompliant(false)]
public static System.IO.Stream AsStream (this Windows.Storage.Streams.IBuffer source);

Parameters

source
IBuffer

The IBuffer to represent as a stream.

Returns

A stream that represents the same memory that the specified Windows.Storage.Streams.IBuffer interface represents.

Attributes

Exceptions

source is null.

Applies to

Product Versions
UWP 10.0