言語

YearMonth.WithMonth(Int32) メソッド

定義

年の月が変更されたこの YearMonth のコピーを返します。

[Android.Runtime.Register("withMonth", "(I)Ljava/time/YearMonth;", "", ApiSince=26)]
public Java.Time.YearMonth? WithMonth(int month);
[<Android.Runtime.Register("withMonth", "(I)Ljava/time/YearMonth;", "", ApiSince=26)>]
member this.WithMonth : int -> Java.Time.YearMonth

パラメーター

month
Int32

1 月から 12 日 (12 月) に、返された年の月に設定する年の月。

返品

要求された月で、null ではなく、今年の月に基づく YearMonth

属性

注釈

追加する。

Javaリファレンス。

適用対象