get_type_string


Description:

public unowned string get_type_string ()

Returns the type string of this.

Unlike the result of calling peek_string, this string is nul-terminated. This string belongs to Variant and must not be freed.

Example: Get the type string for the type:

public static int main () {
// Output: ``as``
Variant var1 = new Variant.strv ({"a", "b"});
unowned string type = var1.get_type_string ();
print ("%s\n", type);
return 0;
}

valac --pkg glib-2.0 GLib.Variant.get_type_string.vala

Parameters:

this

a Variant

Returns:

the type string for the type of this