信息
您所需的主题如下所示。但此主题未包含在此库中。

IDataWriter Interface

提供对输出流的写访问权。

语法


public interface IDataWriter

特性

[Version(0x06020000)]

成员

IDataWriter接口 具有这些类型的成员:

方法

The IDataWriter 接口 具有这些方法。 它还继承方法于Object 类.

方法说明
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.

 

属性

IDataWriter接口 具有这些属性。

属性访问类型说明

ByteOrder

读/写Gets or sets the byte order of the data in the output stream.

UnicodeEncoding

读/写Gets or sets the Unicode character encoding for the output stream.

UnstoredBufferLength

只读Gets the size of the buffer that has not been used.

 

要求

最低支持客户端

Windows 8

最低支持服务器

Windows Server 2012

最低支持电话

Windows Phone 8

命名空间

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

元数据

Windows.winmd

 

 

显示: