Share via


DataWriter.WriteString(String) Method

Definition

Writes a string value to the output stream.

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

Parameters

value
String

Platform::String

winrt::hstring

The value.

Returns

UInt32

unsigned int

uint32_t

The length of the string, in bytes.

Implements

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

Applies to