WindowsRuntimeBufferExtensions.AsStream(IBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Returns a stream that represents the same memory that the specified Windows.Storage.Streams.IBuffer interface represents.
public:
[System::Runtime::CompilerServices::Extension]
static System::IO::Stream ^ AsStream(Windows::Storage::Streams::IBuffer ^ source);
[System.CLSCompliant(false)]
public static System.IO.Stream AsStream (this Windows.Storage.Streams.IBuffer source);
[<System.CLSCompliant(false)>]
static member AsStream : Windows.Storage.Streams.IBuffer -> System.IO.Stream
<Extension()>
Public Function AsStream (source As IBuffer) As Stream
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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.