Aspose.Tasks.Examples.CSharp.WorkingWithProjects.ImportingAndExporting.ImportDataFromXMLFileFormats.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:ImportDataFromXMLFileFormats
            Project project = new Project(dataDir + "Project.xml");
            ProjectFileInfo info = Project.GetProjectFileInfo(dataDir + "Project.xml");
            Console.WriteLine(info.ProjectFileFormat);
            // ExEnd:ImportDataFromXMLFileFormats
        }
    }
ImportDataFromXMLFileFormats