Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDataWriter interface

Applies to Windows and Windows Phone

Provides write access to an output stream.

Syntax


public interface class IDataWriter

Attributes

[Version(0x06020000)]

Members

The IDataWriter interface has these types of members:

Methods

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

MethodDescription
DetachBuffer Detaches a buffer that was previously attached to the writer.
DetachStream Detaches a stream that was previously attached to the writer.
FlushAsync Flushes data asynchronously.
MeasureString Gets the size of a string.
StoreAsync Commits data in the buffer to a backing store.
WriteBoolean Writes a Boolean value to the output stream.
WriteBuffer(IBuffer) Writes a number of bytes from a buffer to the output stream.
WriteBuffer(IBuffer, UInt32, UInt32) Writes a range of bytes from a buffer to the output stream.
WriteByte Writes a byte value to the output stream.
WriteBytes Writes an array of byte values to the output stream.
WriteDateTime Writes a date and time value to the output stream.
WriteDouble Writes a floating-point value to the output stream.
WriteGuid Writes a GUID value to the output stream.
WriteInt16 Writes a 16-bit integer value to the output stream.
WriteInt32 Writes a 32-bit integer value to the output stream.
WriteInt64 Writes a 64-bit integer value to the output stream.
WriteSingle Write a floating-point value to the output stream.
WriteString Writes a string value to the output stream.
WriteTimeSpan Writes a time interval value to the output stream.
WriteUInt16 Writes a 16-bit unsigned integer value to the output stream.
WriteUInt32 Writes a 32-bit unsigned integer value to the output stream.
WriteUInt64 Writes a 64-bit unsigned integer value to the output stream.

 

Properties

The IDataWriter interface has these properties.

PropertyAccess typeDescription

ByteOrder

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

UnicodeEncoding

Read/writeGets or sets the Unicode character encoding for the output stream.

UnstoredBufferLength

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

 

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