IDataReader interface

Applies to Windows and Windows Phone

Provides read access to an input stream.

Syntax

Public Interface IDataReader

Attributes

[Version(0x06020000)]

Members

The IDataReader interface has these types of members:

Methods

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

MethodDescription
DetachBuffer Detaches a buffer that was previously attached to the reader.
DetachStream Detaches a stream that was previously attached to the reader.
LoadAsync Loads data from the input stream.
ReadBoolean Reads a Boolean value from the input stream.
ReadBuffer Reads a buffer from the input stream.
ReadByte Reads a byte value from the input stream.
ReadBytes Reads an array of byte values from the input stream.
ReadDateTime Reads a date and time value from the input stream.
ReadDouble Reads a floating-point value from the input stream.
ReadGuid Reads a GUID value from the input stream.
ReadInt16 Reads a 16-bit integer value from the input stream.
ReadInt32 Reads a 32-bit integer value from the input stream.
ReadInt64 Reads a 64-bit integer value from the input stream.
ReadSingle Reads a floating-point value from the input stream.
ReadString Reads a string value from the input stream.
ReadTimeSpan Reads a time interval from the input stream.
ReadUInt16 Reads a 16-bit unsigned integer from the input stream.
ReadUInt32 Reads a 32-bit unsigned integer from the input stream.
ReadUInt64 Reads a 64-bit unsigned integer from the input stream.

 

Properties

The IDataReader interface has these properties.

PropertyAccess typeDescription

ByteOrder

Read/writeGets or sets the byte order of the data in the input stream.

InputStreamOptions

Read/writeGets or sets the read options for the input stream.

UnconsumedBufferLength

Read-onlyGets the size of the buffer that has not been read.

UnicodeEncoding

Read/writeGets or sets the Unicode character encoding for the input 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

 

 

Show:
© 2014 Microsoft