Component.from_icalcomponent


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "3.34" ) ]
public Component.from_icalcomponent (owned Component icalcomp)

Creates a new Component which will has set icalcomp as an inner Component.

The newly created Component takes ownership of the icalcomp, and if the call to set_icalcomponent fails, then icalcomp is freed.

Parameters:

icalcomp

An Component to use

Returns:

An Component with icalcomp assigned on success, null if the icalcomp cannot be assigned to Component.