共用方式為


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)

適用於