CopyToOptions

CopyToOptions class

Allows to specify additional options when copying project data.

public class CopyToOptions

Constructors

NameDescription
CopyToOptions()Initializes a new instance of the CopyToOptions class.

Properties

NameDescription
CopyViewData { get; set; }Gets or sets a value indicating whether to copy view data while copying project data. Default value is true.

Examples

Shows how to use project copy options.

var project = new Project(DataDir + "CopyToProjectEmpty.xml");
File.Copy(DataDir + "CopyToProjectEmpty.mpp", OutDir + "ProjectCopying_out.mpp", true);

var mppProject = new Project(OutDir + "ProjectCopying_out.mpp");

// skip copying of view data while copying common project data.
var copyToOptions = new CopyToOptions();
copyToOptions.CopyViewData = false;
project.CopyTo(mppProject, copyToOptions);

See Also