newv
Description:
[ Version ( deprecated = true , deprecated_since = "2.54" , since = "2.22" ) ]
public static Object newv (Type object_type, Parameter[] parameters, Cancellable? cancellable = null) throws Error
public static Object newv (Type object_type, Parameter[] parameters, Cancellable? cancellable = null) throws Error
Warning: newv is deprecated since 2.54.
Helper function for constructing Initable object.
Note:
Use new_with_properties and init instead. See Parameter for more information.
This is similar to newv but also initializes the object and returns null, setting an error on failure.
Parameters:
object_type | |
parameters |
the parameters to use to construct the object |
cancellable |
optional Cancellable object, null to ignore. |
n_parameters |
the number of parameters in |
Returns:
a newly allocated Object, or null on error |