Aspose.Tasks.Examples.CSharp.WorkingWithTaskLinks.IdentifyCrossProjectTasks.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:IdentifyCrossProjectTasks
            // Create project instance and access task
            string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName);
            Project project1 = new Project(dataDir + "External.mpp");
            Task externalTask = project1.RootTask.Children.GetByUid(1);

            // Show ID of the task in the external project
            Console.WriteLine(externalTask.Get(Tsk.Id).ToString());
            
            // Show ID of the task in the original project
            Console.WriteLine(externalTask.Get(Tsk.ExternalId).ToString());
            // ExEnd:IdentifyCrossProjectTasks
        }
    }
IdentifyCrossProjectTasks