serialize_to_file


Description:

[ Version ( since = "2.10" ) ]
public bool serialize_to_file (File file, string? header, string? footer, void* data) throws Error

Serializes the object properties of this to the file specified by file.

If a file with that name already exists, it is overwritten. Basically this function opens file for you and calls the serialize function of the this's [iface@ConfigInterface].

Parameters:

this

an object that implements [iface@ConfigInterface].

file

the file to write the configuration to.

header

optional file header (must be ASCII only)

footer

optional file footer (must be ASCII only)

data

user data passed to the serialize implementation.

Returns:

true if serialization succeeded, false otherwise.