Selecting items to export

Create an array of the Selection class in the Tridion.ContentManager.ImportExport namespace to assemble the items you want to export.

Procedure

  1. In your custom client code, create an array of Selection objects.
  2. Fill this array with one or more objects of a subclasses of Selection. The various constructor parameters of these classes let you specify in detail exactly which items to add to your selection array. For example, the SubtreeSelection constructor lets you specify the ID of a root container, and whether or not you want to include the root container itself.
  3. Pass this array to the StartExport method of your client object.