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')
2cal = project.getCalendars().toList().get(0)
3if cal.getExceptions().getCount() > 1
4    exception = cal.getExceptions().toList().get(0)
5    cal.getExceptions().remove(exception)
6    puts "Removed calendar exception."

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.