[ Version ( since = "2.12" ) ]
public bool value_from_string_type (Type type, string str, out Value value) throws Error
Like value_from_string, this function demarshals a value from a string, but takes a Type instead of ParamSpec.
This function calls Value on the value
argument, so it need not be initialised
beforehand.
Upon errors false will be returned and throws will be assigned a Error from the BuilderError domain.
this |
a Builder |
type |
the Type of the value |
value |
the Value to store the result in |
string |
the string representation of the value |
true on success |