Ruby -Programmierhandbuch

Aspose.Tasks - Abrufen von Kalenderausnahmen abrufen **

Um Kalenderausnahmen mit Aspose.Tasks Java für Ruby zu erhalten, rufen Sie einfach GetCalendarexceptions Modul auf. Hier sehen Sie Beispielcode.

 1project = rjb :: import ('com.aspsient.tasks.project'). new ('test_tasks.mpp')
 2
 3calendars = project.getCalendars (). Tolist ()
 4
 5I = 0
 6
 7während ich <calendars.size () <calenders.size ()
 8
 9  Cal = Calenders.get (i)
10
11  CALException = cal.getExceptions (). getCount ()
12
13  Wenn CalException> 0
14
15    puts "From: " + calException.getFromDate().toString()
16
17    puts "To: " + calException.getToDate().toString()
18
19  Ende
20
21  i += 1
22
23Ende

Download Running Code

Download Ring -Kalender -Ausnahmen (Aspose.Tasks) von einer der folgenden erwähnten Social -Coding -Websites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.