1 out of 14 rated this helpful - Rate this topic

IRandomAccessStream interface

Supports random access of data in input and output streams.

Syntax


public interface IRandomAccessStream : IDisposable, 
    IInputStream, IOutputStream

Attributes

GuidAttribute("905a0fe1-bc53-11df-8c49-001e4fc686da")
VersionAttribute(NTDDI_WIN8)

Members

The IRandomAccessStream interface has these types of members:

Methods

The IRandomAccessStream interface has these methods. It also inherits methods from the Object class.

MethodDescription
CloneStream Creates a new instance of a IRandomAccessStream over the same resource as the current stream.
GetInputStreamAt Returns an input stream at a specified location in a stream.
GetOutputStreamAt Returns an output stream at a specified location in a stream.
Seek Sets the position of the stream to the specified value.

 

Properties

The IRandomAccessStream interface has these properties.

PropertyAccess typeDescription

CanRead

Read-onlyGets a value that indicates whether the stream can be read from.

CanWrite

Read-onlyGets a value that indicates whether the stream can be written to.

Position

Read-onlyGets the byte offset of the stream.

Size

Read/writeGets or sets the size of the random access stream.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage.Streams
Windows::Storage::Streams [C++]

Metadata

Windows.winmd

 

 

Build date: 2/25/2013

© 2013 Microsoft. All rights reserved.