Project.CopyTo
Contents
[
Hide
]CopyTo(Project)
Copies project’s main data and properties to another project.
public void CopyTo(Project another)
Parameter | Type | Description |
---|---|---|
another | Project | Another project to copy data to. |
Examples
Shows how to copy the project data to another project.
var project = new Project(DataDir + "CopyToProjectEmpty.xml");
File.Copy(DataDir + "CopyToProjectEmpty.mpp", DataDir + "ProjectCopying_out.mpp", true);
var mppProject = new Project(DataDir + "ProjectCopying_out.mpp");
// skip copying of view data while copying common project data.
project.CopyTo(mppProject);
See Also
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks
CopyTo(Project, CopyToOptions)
Copies project’s main data and properties to another project.
public void CopyTo(Project another, CopyToOptions options)
Parameter | Type | Description |
---|---|---|
another | Project | Another project to copy data to. |
options | CopyToOptions | Copy options to control copy process. |
Examples
Shows how to copy the project with usage of <see cref=“Aspose.Tasks.CopyToOptions”/> instance.
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 options = new CopyToOptions
{
CopyViewData = false
};
project.CopyTo(mppProject, options);
See Also
- class CopyToOptions
- class Project
- namespace Aspose.Tasks
- assembly Aspose.Tasks