Variant.string


Description:

public Variant.string (string value)

Creates a string Variant with the contents of string.

string must be valid UTF-8, and must not be null. To encode potentially- null strings, use Variant with `ms` as the [format string](gvariant-format-strings.html#maybe-types).

Parameters:

string

a normal UTF-8 nul-terminated string

Returns:

a floating reference to a new string Variant instance