YearMonth.WithMonth(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
退回一份已更改年份月份的副本。
[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月1日至12月(12月)
傳回
一個基於該年月且有請求月份的 YearMonth 的 YearMonth
- 屬性
備註
要加入。
Java 參考 java.time.YearMonth.withMonth。