Removing Calendar Exceptions in Ruby

Aspose.Tasks - Removing Calendar Exceptions

To remove Calendar Exceptions using Aspose.Tasks Java for Ruby, simply invoke RemoveCalendarException module. Here you can see example code.

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2
 3cal = project.getCalendars().toList().get(0)
 4
 5if cal.getExceptions().getCount() > 1
 6
 7    exception = cal.getExceptions().toList().get(0)
 8
 9    cal.getExceptions().remove(exception)
10
11    puts "Removed calendar exception."
12
13end

Download Running Code

Download Removing Calendar Exceptions (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.