eject

eject();

The eject method of the MultiMedia class causes the device to eject its medium.

The code fragment in the following example shows the use of the eject method.

if cd.canEject then
    cd.stop;
    cd.eject;
endif

If the useDotNetVersion property is set to true, the eject method is not available and it generates exception 1068 (Feature not available in this release).

See also the canEject method.