Rubyでカレンダーの例外を削除します
Contents
[
Hide
Show
]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)**以下のソーシャルコーディングサイトのいずれかから: