[ Version ( deprecated = true , deprecated_since = "2.54" , since = "2.22" ) ]
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.
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.
| object_type |
a Type supporting Initable. |
| parameters |
the parameters to use to construct the object |
| cancellable |
optional Cancellable object, null to ignore. |
| n_parameters |
the number of parameters in |
|
a newly allocated Object, or null on error |