IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType IRandomAccessStreamWithContentType Interface

Definition

Supports random access of data in input and output streams for a specified data format.

public : interface IRandomAccessStreamWithContentType : IClosable, IContentTypeProvider, IInputStream, IOutputStream, IRandomAccessStream
struct winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType : IClosable, IContentTypeProvider, IInputStream, IOutputStream, IRandomAccessStream
public interface IRandomAccessStreamWithContentType : IDisposable, IContentTypeProvider, IInputStream, IOutputStream, IRandomAccessStream
Public Interface IRandomAccessStreamWithContentType Implements IDisposable, IContentTypeProvider, IInputStream, IOutputStream, IRandomAccessStream
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Inheritance
IDisposableIDisposableIDisposable
IRandomAccessStreamWithContentTypeIRandomAccessStreamWithContentTypeIRandomAccessStreamWithContentTypeIRandomAccessStreamWithContentTypeIRandomAccessStreamWithContentType
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

CanRead CanRead CanRead CanRead CanRead

Gets a value that indicates whether the stream can be read from.

(Inherited from IRandomAccessStream)

CanWrite CanWrite CanWrite CanWrite CanWrite

Gets a value that indicates whether the stream can be written to.

(Inherited from IRandomAccessStream)

ContentType ContentType ContentType ContentType ContentType

Gets the format of the data.

(Inherited from IContentTypeProvider)

Position Position Position Position Position

Gets the byte offset of the stream.

(Inherited from IRandomAccessStream)

Size Size Size Size Size

Gets or sets the size of the random access stream.

(Inherited from IRandomAccessStream)

Methods

CloneStream CloneStream CloneStream CloneStream CloneStream

Creates a new instance of a IRandomAccessStream over the same resource as the current stream.

(Inherited from IRandomAccessStream)

Close Close Close Close Close

Releases system resources that are exposed by a Windows Runtime object.

.NET This interface appears as System.IDisposable.

C++/CX This interface appears as Platform::IDisposable.

(Inherited from IClosable)

FlushAsync FlushAsync FlushAsync FlushAsync FlushAsync

Flushes data asynchronously in a sequential stream.

(Inherited from IOutputStream)

GetInputStreamAt(UInt64) GetInputStreamAt(UInt64) GetInputStreamAt(UInt64) GetInputStreamAt(UInt64) GetInputStreamAt(UInt64)

Returns an input stream at a specified location in a stream.

(Inherited from IRandomAccessStream)

GetOutputStreamAt(UInt64) GetOutputStreamAt(UInt64) GetOutputStreamAt(UInt64) GetOutputStreamAt(UInt64) GetOutputStreamAt(UInt64)

Returns an output stream at a specified location in a stream.

(Inherited from IRandomAccessStream)

ReadAsync(IBuffer,UInt32,InputStreamOptions) ReadAsync(IBuffer,UInt32,InputStreamOptions) ReadAsync(IBuffer,UInt32,InputStreamOptions) ReadAsync(IBuffer,UInt32,InputStreamOptions) ReadAsync(IBuffer,UInt32,InputStreamOptions)

Reads data from the stream asynchronously.

(Inherited from IInputStream)

Seek(UInt64) Seek(UInt64) Seek(UInt64) Seek(UInt64) Seek(UInt64)

Sets the position of the stream to the specified value.

(Inherited from IRandomAccessStream)

WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer) WriteAsync(IBuffer)

Writes data asynchronously in a sequential stream.

(Inherited from IOutputStream)

See Also