Allgemeine Eigenschaften in Ruby

Aspose.Tasks - Allgemeine Eigenschaften erhalten

Um allgemeine Eigenschaften mit Aspose.Tasks Java für Ruby zu erhalten, rufen Sie Get_General_Properties Methode von tasksProperties Modul an. Hier sehen Sie Beispielcode.

Rubincode

 1project = rjb :: import ('com.aspsient.tasks.project'). new ('test_tasks.mpp')
 2
 3Collector = RJB :: Import ('com.asispsis.tasks.ChildtasScollector'). Neu
 4
 5Rjb :: import ('com.asispsis.tasks.taskutils'). Bewerben (project.getroottask (), Sammler, 0)
 6
 7tasks = collector.gettasks ()
 8
 9tsk = rjb :: import ('com.aspsient.tasks.tsk'))
10
11I = 0
12
13während ich <tasks.size () <tasks.size ()
14
15    task = tasks.get(i)
16
17    puts "Task Id:" + task.get(tsk.ID).to_string
18
19    puts "Task Uid: " + task.get(tsk.UID).to_string
20
21    puts "Task Name: " + task.get(tsk.NAME).to_string
22
23    puts "Task Start: " + task.get(tsk.START).to_string
24
25    puts "Task Finish: "+  task.get(tsk.FINISH).to_string
26
27    puts "---------------------------------------------"
28
29    i += 1
30
31Ende

Download Running Code

Download Allgemeine Eigenschaften (Aspose.Tasks) von einer der folgenden sozialen Codierungs -Websites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.