言語

Period.WithMonths(Int32) メソッド

定義

指定した月数のこの期間のコピーを返します。

[Android.Runtime.Register("withMonths", "(I)Ljava/time/Period;", "", ApiSince=26)]
public Java.Time.Period? WithMonths(int months);
[<Android.Runtime.Register("withMonths", "(I)Ljava/time/Period;", "", ApiSince=26)>]
member this.WithMonths : int -> Java.Time.Period

パラメーター

months
Int32

表す月は負の値になる可能性があります。

返品

a Period based on this period with the requested months, not null

属性

注釈

追加する。

Javaリファレンス。

適用対象