DataWriter.WriteString(String) 方法

定义

将字符串值写入输出流。

public:
 virtual unsigned int WriteString(Platform::String ^ value) = WriteString;
uint32_t WriteString(winrt::hstring const& value);
public uint WriteString(string value);
function writeString(value)
Public Function WriteString (value As String) As UInteger

参数

value
String

Platform::String

winrt::hstring

值。

返回

UInt32

unsigned int

uint32_t

字符串的长度(以字节为单位)。

实现

M:Windows.Storage.Streams.IDataWriter.WriteString(System.String) M:Windows.Storage.Streams.IDataWriter.WriteString(Platform::String) M:Windows.Storage.Streams.IDataWriter.WriteString(winrt::hstring)

适用于