Aracılığıyla paylaş


IRandomAccessStreamWithContentType Interface

Definition

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

public interface class IRandomAccessStreamWithContentType : IClosable, IContentTypeProvider, IRandomAccessStream
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(3424995367, 19261, 17295, 146, 50, 16, 199, 107, 199, 224, 56)]
struct IRandomAccessStreamWithContentType : IClosable, IContentTypeProvider, IRandomAccessStream
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(3424995367, 19261, 17295, 146, 50, 16, 199, 107, 199, 224, 56)]
public interface IRandomAccessStreamWithContentType : System.IDisposable, IContentTypeProvider, IRandomAccessStream
Public Interface IRandomAccessStreamWithContentType
Implements IContentTypeProvider, IDisposable, IRandomAccessStream
Derived
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

CanRead

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

(Inherited from IRandomAccessStream)
CanWrite

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

(Inherited from IRandomAccessStream)
ContentType

Gets the format of the data.

(Inherited from IContentTypeProvider)
Position

Gets the byte offset of the stream.

(Inherited from IRandomAccessStream)
Size

Gets or sets the size of the random access stream.

(Inherited from IRandomAccessStream)

Methods

CloneStream()

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

(Inherited from IRandomAccessStream)
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

FlushAsync()

Flushes data asynchronously in a sequential stream.

(Inherited from IOutputStream)
GetInputStreamAt(UInt64)

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

(Inherited from IRandomAccessStream)
GetOutputStreamAt(UInt64)

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

(Inherited from IRandomAccessStream)
ReadAsync(IBuffer, UInt32, InputStreamOptions)

Reads data from the stream asynchronously.

(Inherited from IInputStream)
Seek(UInt64)

Sets the position of the stream to the specified value.

(Inherited from IRandomAccessStream)
WriteAsync(IBuffer)

Writes data asynchronously in a sequential stream.

(Inherited from IOutputStream)

Applies to

See also