Rubyでカレンダーの例外を削除します

Aspose.Tasks -カレンダーの例外を削除

ruby for ruby​​のjavaを使用してカレンダーの例外を削除するには、removecalendarexceptionモジュールを呼び出します。ここでは、サンプルコードを見ることができます。

 1project = rjb :: import( 'com.Aspose.Tasks.project')new( 'test_tasks.mpp')
 2
 3cal = project.getCalendars()tolist()get(0)
 4
 5cal.getExceptions()getCount()> 1の場合
 6
 7    exception = cal.getExceptions().toList().get(0)
 8
 9    cal.getExceptions().remove(exception)
10
11    puts "Removed calendar exception."
12
13終わり

実行中のコードをダウンロード

ダウンロード**カレンダーの例外を削除(Aspose.Tasks)**以下のソーシャルコーディングサイトのいずれかから:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.