Aspose.Tasks.Examples.CSharp.WorkingWithProjects.ImportingAndExporting.ReadXMLFileWithMultipleProjects.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);

            // ExStart:ReadXMLFileWithMultipleProjects
            PrimaveraXmlReadingOptions options = new PrimaveraXmlReadingOptions();
            options.ProjectUid = 4557;
            // Returns project with special Uid
            Project project = new Project(dataDir + "Project.xml", options); 
            // ExEnd:ReadXMLFileWithMultipleProjects
        }
    }
ReadXMLFileWithMultipleProjects