VirtualBox

Changeset 31334 in vbox for trunk


Ignore:
Timestamp:
Aug 3, 2010 1:24:35 PM (14 years ago)
Author:
vboxsync
Message:

Main: API docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r31333 r31334  
    52105210        the list of registered machines in the VirtualBox object. To delete the files which
    52115211        belonged to the machine, including the XML file of the machine itself, call
    5212         <link to="#delete"/>, optionally with the array of IMedium objects that have been
    5213         returned from this method.
    5214 
    5215         Depending on the @a cleanupMode argument, the thoroughness with with this
    5216         method cleans up the machine configuration before unregistering the machine
    5217         will vary.
     5212        <link to="#delete"/>, optionally with the array of IMedium objects which was returned
     5213        from this method.
     5214
     5215        How thoroughly this method cleans up the machine configuration before unregistering
     5216        the machine depends on the @a cleanupMode argument.
    52185217
    52195218        <ul>
     
    52265225          <li>With "DetachAllReturnNone", the call will succeed even if the machine is in "Saved"
    52275226            state or if it has snapshots or media attached. All media attached to the current machine
    5228             state or in snapshots will be detached. No medium objects will be closed or returned; all
    5229             of the machine's media will remain opened.</li>
     5227            state or in snapshots will be detached. No medium objects will be returned; all of the
     5228            machine's media will remain open.</li>
    52305229          <li>With "DetachAllReturnHardDisksOnly", the call will behave like with "DetachAllReturnNone",
    52315230            except that all the hard disk medium objects which were detached from the machine will
     
    52355234            that all media will be returned in the array, including removeable media like DVDs and
    52365235            floppies. This might be useful if the user wants to inspect in detail which media were
    5237             attached to the machine.</li>
     5236            attached to the machine. Be careful when passing the media array to <link to="#delete" />
     5237            in that case because users will typically want to preserve ISO and RAW image files.</li>
    52385238        </ul>
     5239
     5240        This API does not verify whether the media files returned in the array are still
     5241        attached to other machines (i.e. shared between several machines). If such a shared
     5242        image is passed to <link to="#delete" /> however, closing the image will fail there
     5243        and the image will be silently skipped.
     5244
     5245        A typical implementation will use "DetachAllReturnHardDisksOnly" and then pass the
     5246        resulting IMedia array to <link to="#delete"/>. This way, the machine is completely
     5247        deleted with all its saved states and hard disk images, but images for removeable
     5248        drives (such as ISO and RAW files) will remain on disk.
    52395249
    52405250        The call will fail if the machine is currently locked (see <link to="ISession" />).
     
    52685278      <desc>
    52695279        Deletes the files associated with this machine from disk. If medium objects are passed
    5270         in with the @a aMedia argument, they are closed and their storage files are deleted as well.
    5271         For convenience, this array of media files can be the same as the one returned from
    5272         a previous <a link="#unregister" /> call.
     5280        in with the @a aMedia argument, they are closed and, if closing was succesful, their
     5281        storage files are deleted as well. For convenience, this array of media files can be
     5282        the same as the one returned from a previous <link to="#unregister" /> call.
    52735283
    52745284        This method must only be called on machines which are either write-locked (i.e. on instances
     
    52845294            for each online snapshot that the machine had.</li>
    52855295          <li>On each medium object passed in the @a aMedia array, this will call
    5286             <link to="IMedium::close" /> and then attempt to delete the medium's storage
    5287             on disk. The close() call will fail if the medium is still in use, e.g. because
    5288             it is still attached to a second machine.</li>
     5296            <link to="IMedium::close" />. If that succeeds, this will attempt to delete the
     5297            medium's storage on disk. Since the close() call will fail if the medium is still
     5298            in use, e.g. because it is still attached to a second machine; in that case the
     5299            storage will not be deleted.</li>
    52895300          <li>Finally, the machine's own XML file will be deleted.</li>
    52905301        </ul>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette