set_write_header


Description:

public void set_write_header (bool wheader)

If set to true, tehe metadata writer will omit writing a DEP-11 header document when in YAML mode, and will not write a root components node when writing XML data.

Please keep in mind that this will create an invalid DEP-11 YAML AppStream collection metadata file, and an invalid XML file. This parameter should only be changed e.g. by the appstream-generator tool.

NOTE: Right now, this feature is only implemented for YAML!

Parameters:

this

an Metadata instance.

wheader

A boolean value.




2022 vala-language.org